{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "kanban-board",
  "title": "Kanban board",
  "description": "Columns of draggable cards with keyboard moves, animated travel between columns and a lifted drag overlay. Adapted from Kibo UI (MIT).",
  "dependencies": [
    "@dnd-kit/core@^6.3.1",
    "@dnd-kit/sortable@^10.0.0",
    "@dnd-kit/utilities@^3.2.2",
    "motion@^12.23.12",
    "tunnel-rat@^0.1.2"
  ],
  "registryDependencies": [
    "@khaeli/motion-tokens",
    "@khaeli/utils"
  ],
  "files": [
    {
      "path": "registry/khaeli/ui/kanban-board.tsx",
      "content": "\"use client\";\n\n/*\n * Adapted from Kibo UI Kanban, https://github.com/shadcnblocks/kibo/tree/main/packages/kanban\n * Copyright (c) 2023 — Present shadcnblocks\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies\n * of the Software, and to permit persons to whom the Software is furnished to do\n * so, subject to the following conditions:\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n */\n\nimport { closestCenter, DndContext, DragOverlay, KeyboardSensor, MouseSensor, pointerWithin, TouchSensor, useDroppable, useSensor, useSensors, type CollisionDetection, type DragEndEvent, type DragOverEvent, type MouseSensorOptions, type TouchSensorOptions } from \"@dnd-kit/core\";\nimport { arrayMove, SortableContext, sortableKeyboardCoordinates, useSortable, verticalListSortingStrategy } from \"@dnd-kit/sortable\";\nimport { CSS } from \"@dnd-kit/utilities\";\nimport { createContext, useCallback, useContext, useEffect, useId, useLayoutEffect, useRef, useState, type HTMLAttributes, type MouseEvent, type ReactNode, type TouchEvent } from \"react\";\nimport { createPortal } from \"react-dom\";\nimport { useReducedMotion } from \"motion/react\";\nimport tunnel from \"tunnel-rat\";\nimport { cn } from \"@/lib/utils\"\nimport { motionTokens } from \"@/lib/motion-tokens\";\n\n/*\n * A board on the Khaeli board-column metrics: 256px columns 10px apart,\n * each a 28px header over a 16px fill tray with 6px padding and 6px between\n * its white 12px cards. Columns grow with their cards and the board scrolls\n * as one, so a card travelling between columns is never clipped by its own\n * column. Cards carry no padding; consumers lay out their own body and\n * footer. The whole card is the drag surface (mouse past 6px, touch after a\n * 200ms hold); a press on a form control inside a card stays with the\n * control. While lifted, a card leaves a dashed slot of its own height and\n * rides the overlay tilted, with no drop animation. Keyboard users reach\n * each card's move button, which draws as the card's focus ring; a keyboard\n * lift never animates.\n *\n * Motion is a measured FLIP over the Web Animations API: after every data\n * change the board measures each card against its last committed place and\n * plays the difference back to zero, so a card whose column changes outside\n * a drag (a key, a menu, a live update) glides there above the other\n * columns, siblings slide into a removed card's gap, and a card that was not\n * on the board before fades in. During a drag dnd-kit owns every card's\n * position, so layout changes land at once until the drop has settled.\n * Reduced motion drops the glide and keeps the fade: a moved card fades in\n * at its new place.\n */\n\nexport interface KanbanItem { id: string; name: string; column: string }\nexport interface KanbanColumn { id: string; name: string }\ninterface OverlayTunnel { In: React.ComponentType<{ children: ReactNode }>; Out: React.ComponentType }\ninterface Place { x: number; y: number }\n/** Registers a card's motion wrapper with its board, for measuring; returns the cleanup. */\ntype TrackCard = (id: string, node: HTMLElement) => () => void;\ninterface KanbanContextValue { data: KanbanItem[]; activeId: string | null; via: \"pointer\" | \"keyboard\" | null; disabled: boolean; overlay: OverlayTunnel | null; track: TrackCard }\nconst KanbanContext = createContext<KanbanContextValue>({ data: [], activeId: null, via: null, disabled: false, overlay: null, track: () => () => {} });\n\n/** Plays a card from `from` (its old place, relative to the new one) back to where layout put it. */\nfunction glide(node: HTMLElement, from: Place) {\n\tconst { standard, considered } = motionTokens.duration;\n\t// On-screen movement takes longer the further it goes, within the standard to considered durations.\n\tconst seconds = Math.min(considered, standard + Math.hypot(from.x, from.y) / 2000);\n\tnode.dataset.moving = \"\";\n\tconst run = node.animate(\n\t\t[{ transform: `translate(${from.x}px, ${from.y}px)` }, { transform: \"none\" }],\n\t\t{ duration: seconds * 1000, easing: `cubic-bezier(${motionTokens.ease.inOut.join(\", \")})` },\n\t);\n\tconst done = () => { delete node.dataset.moving; };\n\trun.onfinish = done;\n\trun.oncancel = done;\n}\n\n/** The card being dragged, if any, for consumers drawing drop targets of their own. */\nexport function useKanbanDrag(): { activeId: string | null } {\n\tconst { activeId } = useContext(KanbanContext);\n\treturn { activeId };\n}\n\n/**\n * A drop target that stands for column `id` while that column is not drawn\n * (a hidden column's row, say): a drop there moves the card into the column,\n * but hovering it never previews the card there, so the lifted card keeps its\n * place on the board.\n */\nexport function useKanbanDropTarget(id: string) {\n\tconst { setNodeRef, isOver } = useDroppable({ id, data: { preview: false } });\n\treturn { setNodeRef, isOver };\n}\n\n// Controls keep their own press; links and text are drag surface, as on Linear.\nconst CONTROL = \"button, input, select, textarea, [contenteditable=''], [contenteditable='true']\";\nconst fromControl = (target: EventTarget | null) => target instanceof Element && target.closest(CONTROL) !== null;\n\nclass CardMouseSensor extends MouseSensor {\n\tstatic override activators = [{\n\t\teventName: \"onMouseDown\" as const,\n\t\thandler: ({ nativeEvent: event }: MouseEvent, { onActivation }: MouseSensorOptions) => {\n\t\t\tif (event.button !== 0 || fromControl(event.target)) return false;\n\t\t\tonActivation?.({ event });\n\t\t\treturn true;\n\t\t},\n\t}];\n}\n\nclass CardTouchSensor extends TouchSensor {\n\tstatic override activators = [{\n\t\teventName: \"onTouchStart\" as const,\n\t\thandler: ({ nativeEvent: event }: TouchEvent, { onActivation }: TouchSensorOptions) => {\n\t\t\tif (event.touches.length > 1 || fromControl(event.target)) return false;\n\t\t\tonActivation?.({ event });\n\t\t\treturn true;\n\t\t},\n\t}];\n}\n\n/** The click that ends a drag lands on whatever is under the pointer; swallow it so a dropped card never follows its link. A touch's synthetic click arrives after touchend, so it gets a longer window. */\nfunction swallowNextClick(ms: number) {\n\tconst stop = (event: Event) => { event.preventDefault(); event.stopPropagation(); };\n\twindow.addEventListener(\"click\", stop, { capture: true, once: true });\n\tsetTimeout(() => window.removeEventListener(\"click\", stop, { capture: true }), ms);\n}\n\n// The card: white, 12px corners, a 1px `--border` ring on the column's fill tray, and the extra-small shadow under a hovering pointer. 14px text.\n// The card's overflow clips anything drawn outside it, so its move button's focus ring draws on the card itself.\nconst CARD = \"group/card relative flex flex-col overflow-clip rounded-xl bg-card text-sm leading-5 text-card-foreground ring-1 ring-border transition-shadow duration-(--duration-fast) ease-(--ease-standard) pointer-fine:hover:shadow-xs has-[[data-slot=kanban-card-activator]:focus-visible]:shadow-focus\";\n// The keyboard's focused card rings only while its board (a `group/board`) holds focus, so a page at rest stays quiet.\nconst FOCUSED = \"group-focus-within/board:shadow-focus group-focus-within/board:hover:shadow-focus\";\n\n/**\n * A board column: `header` (a 28px row) above a `--secondary` tray with\n * 16px corners and 6px padding that grows with its cards (at least 320px, so\n * an empty column still reads as a place to drop). 256px wide; phones size\n * it to the board less a 3rem peek of the next, never under 224px.\n */\nexport function KanbanBoard({ id, header, children, className }: { id: string; header?: ReactNode; children: ReactNode; className?: string }) {\n\tconst { setNodeRef } = useDroppable({ id });\n\tconst { data, activeId } = useContext(KanbanContext);\n\t// The dragged card previews into the column it is over, so that column is the target.\n\tconst target = activeId !== null && data.some((item) => item.id === activeId && item.column === id);\n\treturn <section ref={setNodeRef} data-slot=\"kanban-column\" data-column={id} data-target={target || undefined} className={cn(\"group/column flex w-64 shrink-0 snap-start flex-col self-start max-md:w-[calc(100%-3rem)] max-md:min-w-56\", className)}>\n\t\t{header}\n\t\t<div data-slot=\"kanban-tray\" className=\"relative flex min-h-80 flex-col gap-1.5 rounded-tray bg-secondary p-1.5 group-data-target/column:ring-1 group-data-target/column:ring-primary-subtle-border\">{children}</div>\n\t</section>;\n}\n\n/** A column's 28px header row above its tray, sticky while the board scrolls under it. */\nexport function KanbanHeader({ className, ...props }: HTMLAttributes<HTMLDivElement>) {\n\treturn <div data-slot=\"kanban-header\" className={cn(\"sticky top-0 z-10 flex h-7 shrink-0 items-center justify-between gap-2 bg-background px-1.5 pb-1 text-sm\", className)} {...props} />;\n}\n\n/**\n * A drop target for column `id` that draws no board column: a list's status\n * group, say, whose rows are `KanbanCard variant=\"row\"`.\n */\nexport function KanbanGroup({ id, children, className, ...props }: HTMLAttributes<HTMLDivElement> & { id: string }) {\n\tconst { setNodeRef } = useDroppable({ id });\n\tconst { data, activeId } = useContext(KanbanContext);\n\tconst target = activeId !== null && data.some((item) => item.id === activeId && item.column === id);\n\treturn <div ref={setNodeRef} data-target={target || undefined} className={className} {...props}>{children}</div>;\n}\n\n/**\n * Column `id`'s items, 6px apart, then `empty` while it has none. `animated`\n * (the default, for board columns) gives each card the board's motion: it\n * glides in from another column, fades in when new, and its siblings slide\n * into the gap a removed card leaves. List rows pass `animated={false}`.\n */\nexport function KanbanCards<T extends KanbanItem>({ id, children, className, empty, role = \"list\", animated = true }: { id: string; children: (item: T) => ReactNode; className?: string; empty?: ReactNode; role?: \"list\" | \"none\"; animated?: boolean }) {\n\tconst { data } = useContext(KanbanContext);\n\tconst filtered = data.filter((item) => item.column === id) as T[];\n\tconst drawn = filtered.flatMap((item) => {\n\t\tconst node = children(item);\n\t\treturn node === null || node === undefined || node === false ? [] : [{ item, node }];\n\t});\n\t// A list may own only list items, and `empty` is not one: while a column has no items it is not a list.\n\tconst none = filtered.length === 0;\n\treturn <SortableContext items={filtered.map((item) => item.id)} strategy={verticalListSortingStrategy}>\n\t\t<div role={none ? undefined : role} className={cn(\"relative flex flex-1 flex-col gap-1.5\", className)}>\n\t\t\t{animated\n\t\t\t\t? drawn.map(({ item, node }) => <KanbanMotionItem key={item.id} id={item.id}>{node}</KanbanMotionItem>)\n\t\t\t\t: drawn.map(({ node }) => node)}\n\t\t\t{none ? empty : null}\n\t\t</div>\n\t</SortableContext>;\n}\n\n/**\n * The element the board measures and animates for one card. It wraps the\n * sortable node, so dnd-kit's transform on the card inside never meets the\n * glide; while gliding it sits above the other columns.\n */\nfunction KanbanMotionItem({ id, children }: { id: string; children: ReactNode }) {\n\tconst { track } = useContext(KanbanContext);\n\tconst ref = useCallback((node: HTMLDivElement | null) => (node ? track(id, node) : undefined), [track, id]);\n\treturn <div ref={ref} className=\"relative shrink-0 data-moving:z-20\">{children}</div>;\n}\n\n// A list row lifts flat: a full-width strip tilted would sweep across its neighbours.\nconst ROW = \"relative bg-background\";\nconst ROW_LIFT = \"rounded-lg bg-surface-raised shadow-card-lift\";\n\n// The overlay draws the item a second time; ids inside it would repeat the page's (and an aria-activedescendant could land on the copy).\nconst LiftedContext = createContext(false);\n\n/**\n * The element of an item's body that carries its DOM id (a row's option, a\n * card's focus target): a plain div, except in the lifted copy that follows\n * the pointer, where it drops `id` so no id is ever on the page twice.\n */\nexport function KanbanBody({ id, ...props }: HTMLAttributes<HTMLDivElement>) {\n\treturn <div id={useContext(LiftedContext) ? undefined : id} {...props} />;\n}\n\n/**\n * A draggable item. `card` (the default) is the board's raised card, whose\n * move button is the keyboard's way to lift it. `row` is a list row inside a\n * listbox: the same dashed slot and lift, but no move button (a button would\n * break the listbox), so its host offers keys of its own to reorder.\n */\nexport function KanbanCard({ id, name, children, className, focused = false, variant = \"card\" }: { id: string; name: string; children?: ReactNode; className?: string; focused?: boolean; variant?: \"card\" | \"row\" }) {\n\tconst { activeId, via, disabled, overlay } = useContext(KanbanContext);\n\tconst { attributes, listeners, setNodeRef, setActivatorNodeRef, transition, transform, isDragging } = useSortable({ id, disabled });\n\tconst body = children ?? <p className=\"p-3\">{name}</p>;\n\tconst Overlay = overlay?.In;\n\tconst row = variant === \"row\";\n\treturn <>\n\t\t{/* While lifted, the item leaves a dashed slot of its own height. */}\n\t\t<div role={row ? \"none\" : \"listitem\"} ref={setNodeRef} {...listeners} style={{ transition, transform: CSS.Transform.toString(transform) }} className={cn(row ? \"rounded-lg\" : \"rounded-xl\", isDragging && \"border border-dashed border-border bg-background/60\", !disabled && \"touch-manipulation select-none [-webkit-touch-callout:none]\")}>\n\t\t\t<div data-slot={row ? \"kanban-row\" : \"kanban-card\"} className={cn(row ? ROW : CARD, focused && !row && FOCUSED, isDragging && \"invisible\", className)}>\n\t\t\t\t{row ? null : <button type=\"button\" ref={setActivatorNodeRef} {...attributes} disabled={disabled} aria-label={`Move ${name}`} data-slot=\"kanban-card-activator\" className=\"pointer-events-none absolute inset-0 rounded-[inherit] outline-none\" />}\n\t\t\t\t{body}\n\t\t\t</div>\n\t\t</div>\n\t\t{activeId === id && Overlay && <Overlay><div data-slot={row ? \"kanban-row\" : \"kanban-card\"} aria-hidden=\"true\" className={cn(row ? ROW : CARD, className, \"pointer-events-none\", row ? ROW_LIFT : \"-rotate-2 shadow-card-lift\", via === \"pointer\" && \"animate-card-lift motion-reduce:animate-none\")}><LiftedContext.Provider value={true}>{body}</LiftedContext.Provider></div></Overlay>}\n\t</>;\n}\n\nexport interface KanbanProviderProps<T extends KanbanItem, C extends KanbanColumn> {\n\tcolumns: C[];\n\tdata: T[];\n\tchildren: (column: C) => ReactNode;\n\tclassName?: string;\n\t/** Drawn after the columns inside the same drag context, e.g. a panel of `useKanbanDropTarget` rows. */\n\taside?: ReactNode;\n\tdisabled?: boolean;\n\tonDataChange: (data: T[]) => void;\n\t/** Persist only completed drops, never hover previews or cancelled drags. `via` says whether a pointer or the keyboard dropped it. */\n\tonCommit: (data: T[], movedId: string, via: \"pointer\" | \"keyboard\") => void;\n}\n\nexport function KanbanProvider<T extends KanbanItem, C extends KanbanColumn>({ columns, data, children, className, aside, disabled = false, onDataChange, onCommit }: KanbanProviderProps<T, C>) {\n\tconst [activeId, setActiveId] = useState<string | null>(null);\n\tconst [via, setVia] = useState<\"pointer\" | \"keyboard\" | null>(null);\n\t// Each board owns its overlay; module-global tunnels mix independent boards.\n\tconst [overlay] = useState(tunnel);\n\t// dnd-kit's own ids come from a module counter, which differs between server and client.\n\tconst id = useId();\n\tconst current = useRef(data);\n\tconst original = useRef(data);\n\tcurrent.current = data;\n\tconst sensors = useSensors(useSensor(CardMouseSensor, { activationConstraint: { distance: 6 } }), useSensor(CardTouchSensor, { activationConstraint: { delay: 200, tolerance: 6 } }), useSensor(KeyboardSensor, { coordinateGetter: sortableKeyboardCoordinates }));\n\t// Under the pointer, a card (or any target that isn't a whole column) wins over the column holding it. The keyboard has no pointer, so it falls back to the closest centre.\n\tconst collisionDetection: CollisionDetection = (args) => {\n\t\tconst within = pointerWithin(args);\n\t\tif (within.length === 0) return closestCenter(args);\n\t\treturn [within.find((collision) => !columns.some((column) => column.id === collision.id)) ?? within[0]!];\n\t};\n\tfunction preview(next: T[]) { current.current = next; onDataChange(next); }\n\tfunction move(event: DragOverEvent | DragEndEvent): T[] | null {\n\t\tconst { active, over } = event;\n\t\tif (!over) return null;\n\t\tconst rows = current.current;\n\t\tconst from = rows.findIndex((item) => item.id === active.id);\n\t\tif (from < 0) return null;\n\t\tconst target = rows.findIndex((item) => item.id === over.id);\n\t\tconst column = target >= 0 ? rows[target]!.column : columns.find((item) => item.id === over.id)?.id;\n\t\tif (!column) return null;\n\t\tconst next = rows.map((item, index) => index === from ? { ...item, column } : item);\n\t\treturn target >= 0 ? arrayMove(next, from, target) : [...next.filter((item) => item.id !== active.id), next[from]!];\n\t}\n\t// Motion. While a drag is on, and briefly after its drop while the data catches up, dnd-kit owns where\n\t// every card sits, so layout changes land at once and the drop settles as it always has.\n\tconst still = useReducedMotion() === true;\n\tconst [settling, setSettling] = useState(false);\n\tconst quiet = activeId !== null || settling;\n\tconst boardRef = useRef<HTMLDivElement>(null);\n\tconst cards = useRef(new Map<string, HTMLElement>());\n\t// Where each drawn card sat after the last commit, in the board's scrolled content coordinates.\n\tconst places = useRef<Map<string, Place> | null>(null);\n\tconst measured = useRef(data);\n\tconst [track] = useState((): TrackCard => (card, node) => {\n\t\tcards.current.set(card, node);\n\t\treturn () => { if (cards.current.get(card) === node) cards.current.delete(card); };\n\t});\n\t// Measure after every commit, so a column shown or hidden in between never reads as cards arriving;\n\t// animate only when the data changed since the last measure.\n\tuseLayoutEffect(() => {\n\t\tconst board = boardRef.current;\n\t\tif (!board) return;\n\t\tconst changed = measured.current !== data;\n\t\tmeasured.current = data;\n\t\tconst before = places.current;\n\t\tconst animate = changed && before !== null && !quiet;\n\t\tconst origin = board.getBoundingClientRect();\n\t\tconst after = new Map<string, Place>();\n\t\tfor (const [card, node] of cards.current) {\n\t\t\tconst runs = node.getAnimations?.() ?? [];\n\t\t\tconst kept = before?.get(card);\n\t\t\t// A running glide skews the measure. With the data unchanged the card is still headed for the\n\t\t\t// place recorded when it started, so the glide plays on; otherwise it restarts from its laid-out place.\n\t\t\tif (runs.length > 0 && !changed && kept) { after.set(card, kept); continue; }\n\t\t\tfor (const run of runs) run.cancel();\n\t\t\tconst rect = node.getBoundingClientRect();\n\t\t\tconst place = { x: rect.left - origin.left + board.scrollLeft, y: rect.top - origin.top + board.scrollTop };\n\t\t\tafter.set(card, place);\n\t\t\tif (!animate || typeof node.animate !== \"function\") continue;\n\t\t\tconst was = before.get(card);\n\t\t\tconst moved = was !== undefined && (Math.abs(was.x - place.x) >= 0.5 || Math.abs(was.y - place.y) >= 0.5);\n\t\t\t// Reduced motion drops the movement and keeps the fade: a moved card fades in at its new place.\n\t\t\tif (!was || (moved && still)) node.animate([{ opacity: 0 }, { opacity: 1 }], { duration: motionTokens.duration.fast * 1000, easing: `cubic-bezier(${motionTokens.ease.enter.join(\", \")})` });\n\t\t\telse if (moved) glide(node, { x: was.x - place.x, y: was.y - place.y });\n\t\t}\n\t\tplaces.current = after;\n\t});\n\tuseEffect(() => {\n\t\tif (!settling) return;\n\t\tconst timer = setTimeout(() => setSettling(false), 400);\n\t\treturn () => clearTimeout(timer);\n\t}, [settling]);\n\tfunction settle(event: { activatorEvent: Event }) {\n\t\tsetActiveId(null); setVia(null); setSettling(true);\n\t\tdocument.body.style.removeProperty(\"cursor\");\n\t\tconst type = event.activatorEvent.type;\n\t\tif (type === \"mousedown\") swallowNextClick(0);\n\t\telse if (type === \"touchstart\") swallowNextClick(400);\n\t}\n\tfunction cancel() { preview(original.current); }\n\treturn <KanbanContext.Provider value={{ data, activeId, via, disabled, overlay, track }}>\n\t\t<DndContext id={id} sensors={sensors} collisionDetection={collisionDetection}\n\t\t\tonDragStart={({ active, activatorEvent }) => {\n\t\t\t\toriginal.current = data; setActiveId(String(active.id)); setVia(activatorEvent.type === \"keydown\" ? \"keyboard\" : \"pointer\");\n\t\t\t\tif (activatorEvent.type === \"mousedown\") document.body.style.cursor = \"grabbing\";\n\t\t\t}}\n\t\t\tonDragOver={(event) => {\n\t\t\t\t// A drop-only target (`useKanbanDropTarget`) takes the drop without previewing the card there.\n\t\t\t\tif (event.over?.data.current?.preview === false) return;\n\t\t\t\tconst item = current.current.find((row) => row.id === event.active.id);\n\t\t\t\tconst target = current.current.find((row) => row.id === event.over?.id);\n\t\t\t\tconst column = target?.column ?? columns.find((row) => row.id === event.over?.id)?.id;\n\t\t\t\tif (column && item?.column !== column) { const next = move(event); if (next) preview(next); }\n\t\t\t}}\n\t\t\tonDragCancel={(event) => { settle(event); cancel(); }}\n\t\t\tonDragEnd={(event) => {\n\t\t\t\tsettle(event);\n\t\t\t\tconst next = move(event);\n\t\t\t\tif (!next) { cancel(); return; }\n\t\t\t\tpreview(next);\n\t\t\t\tif (next.some((item, index) => item.id !== original.current[index]?.id || item.column !== original.current[index]?.column)) onCommit(next, String(event.active.id), event.activatorEvent.type === \"keydown\" ? \"keyboard\" : \"pointer\");\n\t\t\t}}\n\t\t\taccessibility={{ announcements: {\n\t\t\t\tonDragStart: ({ active }) => `Picked up ${data.find((item) => item.id === active.id)?.name ?? \"item\"}. Use arrow keys to move, space to drop, Escape to cancel.`,\n\t\t\t\tonDragOver: ({ over }) => over ? `Over ${columns.find((column) => column.id === over.id)?.name ?? data.find((item) => item.id === over.id)?.name ?? \"destination\"}` : \"Outside the board\",\n\t\t\t\tonDragEnd: () => \"Move completed\", onDragCancel: () => \"Move cancelled\",\n\t\t\t} }}>\n\t\t\t<div ref={boardRef} className={cn(\"flex h-full min-h-0 items-start gap-2.5\", className)}>{columns.map(children)}</div>\n\t\t\t{aside}\n\t\t\t{typeof window !== \"undefined\" && createPortal(<DragOverlay dropAnimation={null} zIndex={80}><overlay.Out /></DragOverlay>, document.body)}\n\t\t</DndContext>\n\t</KanbanContext.Provider>;\n}\n",
      "type": "registry:ui"
    }
  ],
  "docs": "Install @khaeli/foundation first: this item's styling lives in its tokens and [data-slot] rules.",
  "type": "registry:ui"
}