jenosize-ui 0.1.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -10
- package/dist/Cartesian-ZIKPEYWP.d.ts +26 -0
- package/dist/{PaymentInput-CKPIPNWH.d.ts → PaymentInput-Dn5WVQVy.d.ts} +4 -0
- package/dist/{Select-CVbEQ2Ep.d.ts → Select-Dt5ARIH8.d.ts} +4 -0
- package/dist/{TagInput-CTJYOB4J.d.ts → TagInput-BaBeve6L.d.ts} +4 -0
- package/dist/area-chart.d.ts +54 -0
- package/dist/area-chart.js +9 -0
- package/dist/avatar.d.ts +24 -0
- package/dist/avatar.js +13 -7
- package/dist/badge.d.ts +4 -0
- package/dist/badge.js +6 -5
- package/dist/bar-chart.d.ts +32 -0
- package/dist/bar-chart.js +9 -0
- package/dist/breadcrumb.d.ts +4 -0
- package/dist/breadcrumb.js +5 -3
- package/dist/button.d.ts +16 -1
- package/dist/button.js +10 -8
- package/dist/calendar.d.ts +5 -0
- package/dist/calendar.js +18 -14
- package/dist/callout.d.ts +6 -6
- package/dist/callout.js +12 -9
- package/dist/card-D56VxyAe.d.ts +123 -0
- package/dist/card.d.ts +3 -1
- package/dist/card.js +7 -3
- package/dist/checkbox.js +9 -7
- package/dist/chunk-22M75A3N.js +396 -0
- package/dist/{chunk-D5BTFSL7.js → chunk-33TOK7ES.js} +7 -5
- package/dist/{chunk-THC2ISYP.js → chunk-3H444OJA.js} +6 -4
- package/dist/{chunk-GFOAJVW5.js → chunk-3QXLIZIX.js} +4 -13
- package/dist/chunk-3ZEEGXYF.js +8 -0
- package/dist/chunk-45Y2ZGNK.js +34 -0
- package/dist/{chunk-FHHAPGCR.js → chunk-4RBIWI2Q.js} +3 -3
- package/dist/chunk-4VGEJG4M.js +1510 -0
- package/dist/{chunk-PWKWNDBS.js → chunk-54SIZR63.js} +16 -8
- package/dist/chunk-5AZKP4KZ.js +49 -0
- package/dist/chunk-5DP7W5HX.js +254 -0
- package/dist/{chunk-J2BCKBHC.js → chunk-5KSD4WKN.js} +14 -5
- package/dist/{chunk-ZOOX3TUB.js → chunk-5XPMY2LF.js} +6 -6
- package/dist/chunk-5ZEUTSCV.js +147 -0
- package/dist/chunk-5ZPUAGOP.js +19 -0
- package/dist/{chunk-JTNFJLIY.js → chunk-667ZHY3T.js} +114 -42
- package/dist/{chunk-JP26LPCY.js → chunk-6B6BWTXC.js} +30 -13
- package/dist/{chunk-W5GGOUUI.js → chunk-6H4LNWQ7.js} +3 -3
- package/dist/{chunk-WFY7DKQD.js → chunk-6MMBQVRO.js} +61 -51
- package/dist/{chunk-7HOIZ3UO.js → chunk-7GUPNTAH.js} +15 -7
- package/dist/chunk-7VLYQR4D.js +44 -0
- package/dist/{chunk-KNYKWUYX.js → chunk-7ZM7SNCZ.js} +3 -3
- package/dist/{chunk-E7ZSWBAK.js → chunk-A323V6AI.js} +6 -4
- package/dist/chunk-AFYXSZGW.js +23 -0
- package/dist/chunk-AIARANKE.js +33 -0
- package/dist/{chunk-4OLULPQG.js → chunk-AIGYMTCU.js} +10 -6
- package/dist/{chunk-JVJRHBTD.js → chunk-AZ7DKRBY.js} +21 -8
- package/dist/{chunk-JYGR44ZC.js → chunk-BBKE4W3B.js} +19 -11
- package/dist/{chunk-Z3ETJN5G.js → chunk-BFVJHH7S.js} +8 -12
- package/dist/chunk-BLIZ3CL3.js +49 -0
- package/dist/{chunk-F2K7VJUV.js → chunk-CFFWYXDW.js} +19 -7
- package/dist/{chunk-MQGD2OUF.js → chunk-CGHYXWTT.js} +11 -5
- package/dist/{chunk-CYPPEUX5.js → chunk-CKMWBVRR.js} +27 -12
- package/dist/{chunk-GTHJWR3Q.js → chunk-D7EE5GWU.js} +21 -22
- package/dist/{chunk-5NOBSXJN.js → chunk-E2YZ7IMT.js} +24 -8
- package/dist/{chunk-T7FCG7XV.js → chunk-FFMTYQXE.js} +31 -11
- package/dist/{chunk-J36M3KRX.js → chunk-FH7Z7SGQ.js} +67 -32
- package/dist/chunk-FKVPAEJ6.js +57 -0
- package/dist/{chunk-GRLSUQQE.js → chunk-FNQJJO63.js} +4 -4
- package/dist/{chunk-5RAPA22E.js → chunk-FWRHBMWT.js} +4 -4
- package/dist/chunk-GLKFFA7N.js +171 -0
- package/dist/{chunk-KDLPXXD2.js → chunk-GQRSABRN.js} +4 -4
- package/dist/{chunk-DRZCJCBO.js → chunk-GZMDZF2V.js} +8 -7
- package/dist/chunk-HHYEAFCL.js +525 -0
- package/dist/{chunk-LME57Z6J.js → chunk-I6WMNXC7.js} +6 -6
- package/dist/chunk-IQNVSQRK.js +605 -0
- package/dist/chunk-KHGW72BM.js +10 -0
- package/dist/{chunk-ZZA2LUTL.js → chunk-KZP6B6B3.js} +41 -16
- package/dist/chunk-LCG34A5T.js +98 -0
- package/dist/chunk-LLPWQDF7.js +26 -0
- package/dist/{chunk-J7ZQQFPT.js → chunk-LO22VQL5.js} +18 -18
- package/dist/{chunk-BVJWBYIG.js → chunk-LQURV7HQ.js} +9 -7
- package/dist/{chunk-R6RGJF4L.js → chunk-LYXPJERB.js} +15 -5
- package/dist/{chunk-CME4DIML.js → chunk-MCQG4H6T.js} +54 -3
- package/dist/{chunk-VWC72TR3.js → chunk-MVG5MABV.js} +11 -8
- package/dist/{chunk-5FATN5YD.js → chunk-N3RVMBPX.js} +6 -9
- package/dist/chunk-NKG4N6HA.js +188 -0
- package/dist/{chunk-W46K56XU.js → chunk-OACWA4TC.js} +15 -69
- package/dist/chunk-OLLD2BZN.js +33 -0
- package/dist/{chunk-KMSYEE23.js → chunk-P6CON2R2.js} +25 -11
- package/dist/chunk-PO2TYK3C.js +17 -0
- package/dist/{chunk-7EWQKTNQ.js → chunk-POQTE7JI.js} +66 -25
- package/dist/{chunk-HMUZE6EK.js → chunk-QDKETK7D.js} +4 -4
- package/dist/{chunk-GCVA3OIV.js → chunk-QDYE5LVT.js} +13 -3
- package/dist/{chunk-WEUJYDCV.js → chunk-QHH6AUR3.js} +16 -8
- package/dist/chunk-RJTVCA62.js +42 -0
- package/dist/{chunk-MUFHLP4S.js → chunk-S5TEWPWW.js} +50 -41
- package/dist/{chunk-D6TPWNRK.js → chunk-SB3DG572.js} +15 -8
- package/dist/chunk-SKRR3ZMP.js +10 -0
- package/dist/chunk-T4ZFZTY6.js +62 -0
- package/dist/{chunk-I7WU4GTY.js → chunk-T5574MXM.js} +34 -46
- package/dist/{chunk-MKC5HNA7.js → chunk-U4WSJAYK.js} +374 -147
- package/dist/{chunk-BJUZVYQC.js → chunk-UGKELBNC.js} +60 -44
- package/dist/chunk-ULGCGKOE.js +77 -0
- package/dist/{chunk-QA74ITR4.js → chunk-X2VMIBK5.js} +45 -17
- package/dist/chunk-X2X7Q7NW.js +17 -0
- package/dist/chunk-YHBI52P2.js +10 -0
- package/dist/chunk-YIHKQ63K.js +13 -0
- package/dist/{chunk-3Y5X7B5C.js → chunk-YQYVGWIC.js} +6 -11
- package/dist/{chunk-WZQFC7ZN.js → chunk-ZHAT2XZ4.js} +139 -66
- package/dist/{chunk-7IU5TMFL.js → chunk-ZMFY7WAY.js} +124 -40
- package/dist/{chunk-SV56BSUQ.js → chunk-ZZSNTCCL.js} +6 -5
- package/dist/combobox.d.ts +5 -0
- package/dist/combobox.js +15 -12
- package/dist/control-size-CaxQhkKh.d.ts +3 -0
- package/dist/date-input.d.ts +4 -0
- package/dist/date-input.js +12 -9
- package/dist/date-picker.d.ts +6 -0
- package/dist/date-picker.js +25 -20
- package/dist/dialog.d.ts +37 -5
- package/dist/dialog.js +12 -8
- package/dist/drawer.d.ts +20 -3
- package/dist/drawer.js +11 -7
- package/dist/dropdown-menu.d.ts +26 -2
- package/dist/dropdown-menu.js +9 -4
- package/dist/dropzone.d.ts +35 -0
- package/dist/dropzone.js +23 -0
- package/dist/form.d.ts +82 -3
- package/dist/form.js +205 -45
- package/dist/header-navigation.d.ts +19 -4
- package/dist/header-navigation.js +23 -16
- package/dist/helper.d.ts +36 -0
- package/dist/helper.js +3 -0
- package/dist/index.d.ts +32 -8
- package/dist/index.js +87 -62
- package/dist/indicator.js +4 -4
- package/dist/input.d.ts +4 -0
- package/dist/input.js +10 -8
- package/dist/kanban-board.d.ts +489 -0
- package/dist/kanban-board.js +25 -0
- package/dist/labels-DPrh0se9.d.ts +627 -0
- package/dist/line-chart.d.ts +36 -0
- package/dist/line-chart.js +9 -0
- package/dist/{nav-Bla0o_-1.d.ts → nav-CKKqjBs6.d.ts} +18 -11
- package/dist/number-input.d.ts +4 -0
- package/dist/number-input.js +10 -8
- package/dist/pagination.d.ts +7 -1
- package/dist/pagination.js +14 -10
- package/dist/panel-El4oI68p.d.ts +9 -0
- package/dist/payment-input.d.ts +3 -2
- package/dist/payment-input.js +10 -8
- package/dist/pie-chart.d.ts +64 -0
- package/dist/pie-chart.js +9 -0
- package/dist/popover.d.ts +9 -3
- package/dist/popover.js +11 -7
- package/dist/progress-steps.d.ts +275 -0
- package/dist/progress-steps.js +8 -0
- package/dist/progress.d.ts +21 -1
- package/dist/progress.js +3 -2
- package/dist/provider.d.ts +212 -0
- package/dist/provider.js +7 -0
- package/dist/radar-chart.d.ts +77 -0
- package/dist/radar-chart.js +9 -0
- package/dist/radial-chart.d.ts +73 -0
- package/dist/radial-chart.js +9 -0
- package/dist/radio.js +9 -7
- package/dist/rule-BqzaIwJy.d.ts +80 -0
- package/dist/scroll-area.d.ts +62 -0
- package/dist/scroll-area.js +7 -0
- package/dist/select.d.ts +3 -3
- package/dist/select.js +17 -14
- package/dist/separator.d.ts +114 -0
- package/dist/separator.js +5 -0
- package/dist/shared-CxAedkiy.d.ts +68 -0
- package/dist/sidebar-navigation.d.ts +80 -12
- package/dist/sidebar-navigation.js +18 -9
- package/dist/skeleton.d.ts +61 -0
- package/dist/skeleton.js +5 -0
- package/dist/styles.css +1 -1
- package/dist/switch.js +4 -4
- package/dist/table.d.ts +148 -42
- package/dist/table.js +39 -33
- package/dist/tabs.d.ts +22 -0
- package/dist/tabs.js +3 -3
- package/dist/tag-input.d.ts +3 -2
- package/dist/tag-input.js +13 -11
- package/dist/tag.d.ts +4 -0
- package/dist/tag.js +4 -3
- package/dist/textarea.js +7 -5
- package/dist/theme.css +151 -6
- package/dist/theme.js +11 -9
- package/dist/toast.d.ts +11 -2
- package/dist/toast.js +12 -9
- package/dist/tooltip-surface-C2I9o2QM.d.ts +35 -0
- package/dist/tooltip.d.ts +15 -1
- package/dist/tooltip.js +3 -2
- package/dist/tree.d.ts +5 -0
- package/dist/tree.js +8 -6
- package/dist/types-DR9rAEy1.d.ts +188 -0
- package/dist/use-uploads-KaPqDklo.d.ts +482 -0
- package/dist/verification-code-input.d.ts +84 -0
- package/dist/verification-code-input.js +14 -0
- package/package.json +70 -9
- package/dist/card-nWicloNi.d.ts +0 -80
- package/dist/chunk-24TO7E32.js +0 -42
- package/dist/chunk-FXIBGTS5.js +0 -14
- package/dist/chunk-MFJP5FA7.js +0 -20
- package/dist/chunk-ZZT2E5VT.js +0 -24
- package/dist/shared-BNXAdgh2.d.ts +0 -9
|
@@ -0,0 +1,489 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { K as KanbanBoardLabels } from './labels-DPrh0se9.js';
|
|
3
|
+
import { DropdownMenuItem } from './dropdown-menu.js';
|
|
4
|
+
import './panel-El4oI68p.js';
|
|
5
|
+
import './rule-BqzaIwJy.js';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Two densities, and they set the column WIDTH as well as the padding.
|
|
9
|
+
*
|
|
10
|
+
* There is deliberately no `columnWidth` prop: a bare `number` would need an `OPEN_BY_DESIGN` entry
|
|
11
|
+
* + a dev-warn (`props:check`) to buy a knob the house rules call un-opinionated. A board is a
|
|
12
|
+
* page-level region with one job — two widths cover it.
|
|
13
|
+
*/
|
|
14
|
+
type KanbanSize = "sm" | "md";
|
|
15
|
+
/** How the board answers for its own height. ONE union, never a `fillHeight` boolean pair. */
|
|
16
|
+
type KanbanHeight = "auto" | "fill";
|
|
17
|
+
/**
|
|
18
|
+
* Where a card's pointer drag starts. Tree's `reorder.handle` vocabulary, member for member.
|
|
19
|
+
*
|
|
20
|
+
* `card` (the default) is the whole surface, with the cursor as the affordance and a bail-out list
|
|
21
|
+
* keeping a caller's buttons, links and inputs clickable. `grip` moves the gesture onto a glyph the
|
|
22
|
+
* card draws for it, which is what a card whose body is genuinely interactive wants: the bail list is
|
|
23
|
+
* a GUESS about the caller's node, and a card of checkboxes, sliders or a drag-selectable label is
|
|
24
|
+
* one it gets wrong. The keyboard path is the same under both — the card keeps its tab stop and its
|
|
25
|
+
* space/enter grab, because a grip is a pointer affordance and nothing else.
|
|
26
|
+
*/
|
|
27
|
+
type KanbanHandle = "card" | "grip";
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* The two affordances a column header offers, as ONE object rather than two loose props.
|
|
31
|
+
*
|
|
32
|
+
* `add` is a **named field**, not an entry in a generic action list, because the `+` is universal on
|
|
33
|
+
* boards and is always the rightmost control — a list would let a caller spell it in the wrong place
|
|
34
|
+
* or twice. `menu` reuses `DropdownMenu`'s recursive item union rather than minting a second action
|
|
35
|
+
* vocabulary for the same job (AGENTS §11 — the menu's rows ARE actions, and that union already
|
|
36
|
+
* names every one of them).
|
|
37
|
+
*/
|
|
38
|
+
interface KanbanColumnActions<Col extends string = string> {
|
|
39
|
+
/**
|
|
40
|
+
* The `+`. One icon button, pinned rightmost in the header.
|
|
41
|
+
*
|
|
42
|
+
* `label` is its accessible name (the glyph carries no text), and `onClick` receives the column it
|
|
43
|
+
* belongs to, so one handler can serve every column.
|
|
44
|
+
*/
|
|
45
|
+
add?: {
|
|
46
|
+
label: string;
|
|
47
|
+
/** Override the default `+` glyph. Component-owned chrome, so it is NOT a `leading` slot. */
|
|
48
|
+
icon?: React.ReactNode;
|
|
49
|
+
onClick: (columnId: Col) => void;
|
|
50
|
+
};
|
|
51
|
+
/** The `⋯`. Rendered through `<DropdownMenu>` — same union, same behaviours, no second grammar. */
|
|
52
|
+
menu?: readonly DropdownMenuItem[];
|
|
53
|
+
}
|
|
54
|
+
/** One declared slot on the board. The column set is the enumerable thing a board is built from. */
|
|
55
|
+
interface KanbanColumn<Col extends string = string> {
|
|
56
|
+
/** Stable identity, and the value `getColumnId(item)` is matched against. */
|
|
57
|
+
id: Col;
|
|
58
|
+
title: React.ReactNode;
|
|
59
|
+
/**
|
|
60
|
+
* The status glyph beside the title — a caller node, so it goes through `src/lib/slot.tsx` and is
|
|
61
|
+
* **never** `aria-hidden`ed (docs/slot-policy.md). The header's own chrome (the `⋯`, the `+`, the
|
|
62
|
+
* collapse chevron) is component-owned and does NOT go through `<Slot>`.
|
|
63
|
+
*/
|
|
64
|
+
leading?: React.ReactNode;
|
|
65
|
+
/**
|
|
66
|
+
* The header's right side, after the title and before the `⋯`/`+`. Same slot contract as
|
|
67
|
+
* {@link KanbanColumn.leading} — `<Slot>`, never `aria-hidden`ed, and the caller owns the node's
|
|
68
|
+
* size AND its a11y semantics.
|
|
69
|
+
*
|
|
70
|
+
* **This is where a count goes, and the board no longer draws one.** The header used to ship a
|
|
71
|
+
* built-in count chip fed by `board.count()`, plus a `wipLimit` that turned it into `2/3` in amber
|
|
72
|
+
* — both are gone, because the board was choosing what a header SAYS while this file claimed the
|
|
73
|
+
* caller owns exactly that.
|
|
74
|
+
*
|
|
75
|
+
* **The count comes from the caller's own `items`, not from `board`.** `columns` is an INPUT to
|
|
76
|
+
* `useKanban`, so `board` is still in its temporal dead zone while this node is built — a
|
|
77
|
+
* `trailing: <Badge>{board.count(…)}</Badge>` throws a `ReferenceError` on the first render. The
|
|
78
|
+
* caller holds `items` anyway, so the tally is theirs:
|
|
79
|
+
*
|
|
80
|
+
* ```tsx
|
|
81
|
+
* const counts = React.useMemo(() => {
|
|
82
|
+
* const n: Record<string, number> = {};
|
|
83
|
+
* for (const t of tickets) n[t.status] = (n[t.status] ?? 0) + 1;
|
|
84
|
+
* return n;
|
|
85
|
+
* }, [tickets]);
|
|
86
|
+
*
|
|
87
|
+
* const columns = React.useMemo(
|
|
88
|
+
* () => STAGES.map((c) => ({ ...c, trailing: <Badge seamless shape="pill" size="sm">{counts[c.id] ?? 0}</Badge> })),
|
|
89
|
+
* [counts]
|
|
90
|
+
* );
|
|
91
|
+
* ```
|
|
92
|
+
*
|
|
93
|
+
* `board.count` / `board.columnCount` are for everything evaluated AFTER the hook returns — a
|
|
94
|
+
* `canMove` capacity rule (deferred, so the TDZ has closed by the time it runs), a toolbar beside
|
|
95
|
+
* the board, a `<KanbanBoard>` sibling. They are also the only place `paging.total` is resolved
|
|
96
|
+
* ahead of the loaded length, so a paged board's chip should read the same `total` callback the
|
|
97
|
+
* caller already wrote rather than counting rows it has not fetched.
|
|
98
|
+
*
|
|
99
|
+
* `seamless` is the right chip recipe here for the reason it always was (AGENTS §4): it drops the
|
|
100
|
+
* badge's colour AND its vertical box, so the node tracks the header's text colour by plain CSS
|
|
101
|
+
* inheritance and cannot push the header's height. A coloured `<Badge>` in this slot is legal —
|
|
102
|
+
* it will just set the header's height, which is now the caller's problem to see and accept.
|
|
103
|
+
*/
|
|
104
|
+
trailing?: React.ReactNode;
|
|
105
|
+
actions?: KanbanColumnActions<Col>;
|
|
106
|
+
/** What the column shows at zero cards. The `<ul>` still renders, so it stays a drop target. */
|
|
107
|
+
emptyMessage?: React.ReactNode;
|
|
108
|
+
/**
|
|
109
|
+
* Can the reader collapse this column to a rail? @default false
|
|
110
|
+
*
|
|
111
|
+
* Collapse is OPT-IN: most boards want every column readable at once, and a rail the caller never
|
|
112
|
+
* asked for is a control that only ever hides work. Leaving it off (or `false`) hides the control
|
|
113
|
+
* AND makes the column immune to `defaultCollapsedColumns` — a declaration that state could
|
|
114
|
+
* override would be a lie.
|
|
115
|
+
*/
|
|
116
|
+
collapsible?: boolean;
|
|
117
|
+
/** Refuses every drop, in and out, and dims its cards. */
|
|
118
|
+
disabled?: boolean;
|
|
119
|
+
/** Layout/spacing only, merged via `cn()`. */
|
|
120
|
+
className?: string;
|
|
121
|
+
}
|
|
122
|
+
/** One declared swimlane — a row that crosses every column. */
|
|
123
|
+
interface KanbanLane<Lane extends string = string> {
|
|
124
|
+
id: Lane;
|
|
125
|
+
title: React.ReactNode;
|
|
126
|
+
/** A caller node, same contract as {@link KanbanColumn.leading}. */
|
|
127
|
+
leading?: React.ReactNode;
|
|
128
|
+
/** Can the reader collapse this lane? Opt-in, same as {@link KanbanColumn.collapsible}. @default false */
|
|
129
|
+
collapsible?: boolean;
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* One addressable list of cards — the intersection of a column and a lane.
|
|
133
|
+
*
|
|
134
|
+
* **`lane` is `null` on an un-laned board, never `undefined`.** That is load-bearing twice: the cell
|
|
135
|
+
* key stringifies it, and `undefined` is indistinguishable from a legitimately-absent property in an
|
|
136
|
+
* object literal a caller builds by hand — so a typo would silently address a different cell.
|
|
137
|
+
*/
|
|
138
|
+
interface KanbanCell<Col extends string = string, Lane extends string = string> {
|
|
139
|
+
column: Col;
|
|
140
|
+
lane: Lane | null;
|
|
141
|
+
}
|
|
142
|
+
interface KanbanPosition<Col extends string = string, Lane extends string = string> extends KanbanCell<Col, Lane> {
|
|
143
|
+
/**
|
|
144
|
+
* **Two indices wear this one `number`, and they differ exactly where off-by-one lands.**
|
|
145
|
+
*
|
|
146
|
+
* - On `KanbanMove.from` it is the **source index**: the card's position in the list it is
|
|
147
|
+
* leaving, *before* removal.
|
|
148
|
+
* - On `KanbanMove.to` it is the **destination index**: its position in the target list *after*
|
|
149
|
+
* the card has been removed from its source — the `arrayMove` convention.
|
|
150
|
+
*
|
|
151
|
+
* They agree for every cross-list move and disagree for a same-list one. Dragging `[A, B, C]`
|
|
152
|
+
* index 0 to the end is `from.index: 0, to.index: 2` — **not 3**. `dnd.ts`'s `toMove()` applies
|
|
153
|
+
* that correction in exactly one place and every consumer reads its output; two call sites
|
|
154
|
+
* computing it independently is the classic bug this note exists to prevent. A worked example is
|
|
155
|
+
* in `docs/components/kanban-board.md` § Usage.
|
|
156
|
+
*/
|
|
157
|
+
index: number;
|
|
158
|
+
}
|
|
159
|
+
/** A card move, reported for the caller to apply. The hook holds no shadow copy of `items`. */
|
|
160
|
+
interface KanbanMove<Col extends string = string, Lane extends string = string> {
|
|
161
|
+
id: string;
|
|
162
|
+
from: KanbanPosition<Col, Lane>;
|
|
163
|
+
to: KanbanPosition<Col, Lane>;
|
|
164
|
+
}
|
|
165
|
+
/**
|
|
166
|
+
* A column-order move. `index` is the destination in the `columns` array **after** the column has
|
|
167
|
+
* been removed from its current position — the same `arrayMove` convention as
|
|
168
|
+
* {@link KanbanPosition.index}, normalised once by `dnd.ts`'s `toColumnMove()`.
|
|
169
|
+
*/
|
|
170
|
+
interface KanbanColumnMove<Col extends string = string> {
|
|
171
|
+
id: Col;
|
|
172
|
+
index: number;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* The shared pointer/touch **drag layer** — threshold arbitration, listener lifetime, the draft
|
|
177
|
+
* lifecycle, `Escape`, and edge autoscroll. It knows **nothing** about calendars, times or trees.
|
|
178
|
+
*
|
|
179
|
+
* ## Why this is hand-rolled and not a library
|
|
180
|
+
*
|
|
181
|
+
* The honest count of drag libraries that fit both the calendar and the tree is **zero**, so a
|
|
182
|
+
* unifying layer is ours either way. Two facts decided it:
|
|
183
|
+
*
|
|
184
|
+
* 1. **dnd-kit's `createSnapModifier` snaps the visual TRANSFORM only.** A modifier receives
|
|
185
|
+
* `{ transform }` and returns a transform; it cannot alter reported coordinates or collision
|
|
186
|
+
* results. So the ghost snaps to a pixel grid while `onDragEnd` hands back the raw `event.delta`
|
|
187
|
+
* — the domain value gets computed a **second** time, in different units, in a different file,
|
|
188
|
+
* and the two must agree. That is exactly the *"the event landed at 14:03"* bug class. This layer
|
|
189
|
+
* inverts it: **the caller snaps in domain units and derives pixels.** One source of truth.
|
|
190
|
+
* 2. **There is no stable dnd-kit to adopt.** `@dnd-kit/core@6.3.1` last published ~2 years ago and
|
|
191
|
+
* its docs repo is archived read-only; the `@dnd-kit/react` rewrite is pre-1.0 (v0.5.0) with a
|
|
192
|
+
* breaking event-type redesign one minor ago. Pragmatic's element adapter *is* native HTML5 DnD,
|
|
193
|
+
* which is broken on touch — the reason the tree plan rejected HTML5 DnD in the first place.
|
|
194
|
+
*
|
|
195
|
+
* For continuous time geometry, dnd-kit also reduces to a sensor library: all four of its collision
|
|
196
|
+
* algorithms work on *registered droppable rects*, and a week grid means either 336 droppables (7 ×
|
|
197
|
+
* 48, measured and collision-tested per move) or zero, which switches off its core feature.
|
|
198
|
+
*
|
|
199
|
+
* ## Mouse and touch are SEPARATE paths — not unified PointerEvents
|
|
200
|
+
*
|
|
201
|
+
* The one non-obvious design decision here, and it is evidence-based. From dnd-kit's own
|
|
202
|
+
* PointerSensor docs: *"For Pointer Events, there is no way to prevent the default behaviour of the
|
|
203
|
+
* browser on touch devices when interacting with a draggable element from the pointer event
|
|
204
|
+
* listeners"*, and *"using `touch-action: none;` is the only way to reliably prevent scrolling for
|
|
205
|
+
* pointer events"* — which, once a `pointerdown` has fired, cannot be changed. Their own
|
|
206
|
+
* recommendation is Mouse + Touch sensors, because *"touch events do not suffer the same
|
|
207
|
+
* limitations … it is possible to prevent the page from scrolling in `touchmove` events."*
|
|
208
|
+
*
|
|
209
|
+
* Why it bites here specifically: a week grid is a **vertically scrolling** container whose surface
|
|
210
|
+
* is mostly covered by draggable event blocks. `touch-action: none` on every block would kill
|
|
211
|
+
* scroll-by-touch over that surface. So mouse activates on a 4px **threshold** (a click is never a
|
|
212
|
+
* drag) and touch activates on a 250ms **long-press** (a quick swipe still scrolls), with
|
|
213
|
+
* `preventDefault()` in `touchmove` only **after** the drag is confirmed.
|
|
214
|
+
*
|
|
215
|
+
* Lives in `src/lib/` beside `scrollport.ts` for the same reason that one does: it is invisible to
|
|
216
|
+
* the dependency-graph gate, so two components can share a foundation without importing each other.
|
|
217
|
+
*/
|
|
218
|
+
|
|
219
|
+
interface Point {
|
|
220
|
+
x: number;
|
|
221
|
+
y: number;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
/**
|
|
225
|
+
* Present ⇒ swimlanes are on.
|
|
226
|
+
*
|
|
227
|
+
* Both fields are genuinely required, so `{}` is rejected without reaching for `AtLeastOne` —
|
|
228
|
+
* Tree's `reorder` lesson: a required field does that job on its own, and `AtLeastOne` would only
|
|
229
|
+
* make both optional again.
|
|
230
|
+
*/
|
|
231
|
+
interface KanbanLanesOptions<Item, Lane extends string = string> {
|
|
232
|
+
lanes: readonly KanbanLane<Lane>[];
|
|
233
|
+
/** `NoInfer` so `Lane` is inferred from `lanes` ONLY — a stray key is an error, not a widening. */
|
|
234
|
+
getLaneId: (item: Item) => NoInfer<Lane>;
|
|
235
|
+
}
|
|
236
|
+
/** Present ⇒ the column headers are draggable. Required `onColumnMove` rejects `{}` on its own. */
|
|
237
|
+
interface KanbanColumnReorder<Col extends string = string> {
|
|
238
|
+
/** Reports the intent. **The caller reorders the `columns` array** — the hook holds no order. */
|
|
239
|
+
onColumnMove: (move: KanbanColumnMove<Col>) => void;
|
|
240
|
+
/** Narrows the structural veto; it can never re-allow what the structure already refused. */
|
|
241
|
+
canMoveColumn?: (move: KanbanColumnMove<Col>) => boolean;
|
|
242
|
+
}
|
|
243
|
+
/**
|
|
244
|
+
* Present ⇒ infinite scroll, per cell. Two required fields, so `{}` is rejected on its own.
|
|
245
|
+
*
|
|
246
|
+
* **The hook NEVER holds the fetched cards.** `loadMore` resolves once the caller has appended them
|
|
247
|
+
* to `items`, exactly as `useTree`'s `loadChildren` → `onChildrenLoaded` does — with the merge step
|
|
248
|
+
* deleted, because a board's merge is `items.concat(page)` and needs no helper.
|
|
249
|
+
*/
|
|
250
|
+
interface KanbanLoadMore<Col extends string = string, Lane extends string = string> {
|
|
251
|
+
/** Is there another page? Consulted before firing and again after every resolve. */
|
|
252
|
+
hasMore: (cell: KanbanCell<Col, Lane>) => boolean;
|
|
253
|
+
/** Fetch it. **Reject to mark the cell failed** — the rejection never reaches render. */
|
|
254
|
+
loadMore: (cell: KanbanCell<Col, Lane>) => Promise<void>;
|
|
255
|
+
/**
|
|
256
|
+
* The server-side total, for the count chip and the WIP check.
|
|
257
|
+
*
|
|
258
|
+
* `hasMore` owns *firing*; this owns *display*. Omit it and both fall back to the loaded count —
|
|
259
|
+
* which is a paging artifact, so a column holding 400 rows would read "3".
|
|
260
|
+
*/
|
|
261
|
+
total?: (cell: KanbanCell<Col, Lane>) => number;
|
|
262
|
+
/** How far from the bottom the loader button auto-fires, in px. @default 240 */
|
|
263
|
+
rootMargin?: number;
|
|
264
|
+
}
|
|
265
|
+
interface UseKanbanOptions<Item, Col extends string = string, Lane extends string = string> {
|
|
266
|
+
/** The caller's own domain objects. Their ORDER within a cell *is* the card order. */
|
|
267
|
+
items: readonly Item[];
|
|
268
|
+
/** The enumerable slot declaration the whole data-first classification rests on. */
|
|
269
|
+
columns: readonly KanbanColumn<Col>[];
|
|
270
|
+
getItemId: (item: Item) => string;
|
|
271
|
+
/** `NoInfer` so `Col` is inferred from `columns` only — a stray status is an error. */
|
|
272
|
+
getColumnId: (item: Item) => NoInfer<Col>;
|
|
273
|
+
/**
|
|
274
|
+
* **The one string the library reads.** The card body is an opaque node, which leaves nothing for
|
|
275
|
+
* the move announcement, the keyboard grab readout, or the drag ghost — so this accessor exists,
|
|
276
|
+
* and the body stays 100 % opaque. (`Tree` hit the same wall and answered it with
|
|
277
|
+
* `TreeNode.ariaLabel`.)
|
|
278
|
+
*/
|
|
279
|
+
getItemLabel: (item: Item) => string;
|
|
280
|
+
/**
|
|
281
|
+
* **DATA → NODE, and required.** The library never parses what comes back.
|
|
282
|
+
*
|
|
283
|
+
* Required rather than optional because a board has no metadata vocabulary to fall back on — an
|
|
284
|
+
* absent `card` would render empty boxes, where `Table`'s absent `cell` still has `column.value`.
|
|
285
|
+
*/
|
|
286
|
+
card: (item: Item) => React.ReactNode;
|
|
287
|
+
/**
|
|
288
|
+
* Required, because card drag is always on. **A read-only board is `canMove: () => false`**, not a
|
|
289
|
+
* second mode — one code path, and a required field rejects `{}` for a better reason than a
|
|
290
|
+
* clever type would.
|
|
291
|
+
*/
|
|
292
|
+
onMove: (move: KanbanMove<Col, Lane>) => void;
|
|
293
|
+
/** The caller's veto. It only ever NARROWS the structural rules; it cannot re-allow. */
|
|
294
|
+
canMove?: (move: KanbanMove<Col, Lane>) => boolean;
|
|
295
|
+
/** Cards that refuse to move, in or out. */
|
|
296
|
+
disabledItems?: (item: Item) => boolean;
|
|
297
|
+
lanes?: KanbanLanesOptions<Item, Lane>;
|
|
298
|
+
columnReorder?: false | KanbanColumnReorder<Col>;
|
|
299
|
+
paging?: false | KanbanLoadMore<Col, Lane>;
|
|
300
|
+
collapsedColumns?: ReadonlySet<NoInfer<Col>> | readonly NoInfer<Col>[];
|
|
301
|
+
defaultCollapsedColumns?: readonly NoInfer<Col>[];
|
|
302
|
+
onCollapsedColumnsChange?: (ids: ReadonlySet<Col>) => void;
|
|
303
|
+
collapsedLanes?: ReadonlySet<NoInfer<Lane>> | readonly NoInfer<Lane>[];
|
|
304
|
+
defaultCollapsedLanes?: readonly NoInfer<Lane>[];
|
|
305
|
+
onCollapsedLanesChange?: (ids: ReadonlySet<Lane>) => void;
|
|
306
|
+
}
|
|
307
|
+
interface KanbanCellView<Item, Col extends string, Lane extends string> {
|
|
308
|
+
column: Col;
|
|
309
|
+
lane: Lane | null;
|
|
310
|
+
/** The caller's order, filtered. Never sorted, never stabilised. */
|
|
311
|
+
items: readonly Item[];
|
|
312
|
+
}
|
|
313
|
+
interface KanbanLaneView<Item, Col extends string, Lane extends string> {
|
|
314
|
+
/** `null` on an un-laned board — where `layout` holds exactly one entry. */
|
|
315
|
+
lane: KanbanLane<Lane> | null;
|
|
316
|
+
/** **Dense** — one cell per declared column, in `columns` order, even when empty. */
|
|
317
|
+
cells: readonly KanbanCellView<Item, Col, Lane>[];
|
|
318
|
+
}
|
|
319
|
+
/**
|
|
320
|
+
* A move in progress, published so the ghost, the source placeholder, the drop indicator **and**
|
|
321
|
+
* keyboard grab mode all render from one place. Calendar's model rather than Tree's, and the reason
|
|
322
|
+
* is that a board has four consumers of the same "where is it going" answer instead of two.
|
|
323
|
+
*/
|
|
324
|
+
interface KanbanDraft<Col extends string = string, Lane extends string = string> {
|
|
325
|
+
id: string;
|
|
326
|
+
/** From `getItemLabel` — the ghost's text and the announcement's subject. */
|
|
327
|
+
label: string;
|
|
328
|
+
from: KanbanPosition<Col, Lane>;
|
|
329
|
+
/** The cell currently under the pointer, or walked to by keyboard. `null` while unresolved. */
|
|
330
|
+
target: KanbanCell<Col, Lane> | null;
|
|
331
|
+
/**
|
|
332
|
+
* The insertion index in `target`, already normalised to the `arrayMove` convention.
|
|
333
|
+
*
|
|
334
|
+
* **`null` means the hovered position is REFUSED** — no indicator is drawn and the cursor goes
|
|
335
|
+
* `not-allowed`. A wall, not an error: same contract as Tree's `position: null`.
|
|
336
|
+
*/
|
|
337
|
+
index: number | null;
|
|
338
|
+
/** Viewport point for the ghost. `null` for a keyboard grab, which has no pointer. */
|
|
339
|
+
point: Point | null;
|
|
340
|
+
/** Which gesture is driving. The ghost anchors at the pointer, or at the card. */
|
|
341
|
+
kind: "pointer" | "keyboard";
|
|
342
|
+
}
|
|
343
|
+
interface UseKanbanResult<Item, Col extends string = string, Lane extends string = string> {
|
|
344
|
+
/**
|
|
345
|
+
* The ONE derived layout the view AND the keyboard model read — Tree's `visible`.
|
|
346
|
+
*
|
|
347
|
+
* Derived once, here, so the two can never disagree about what "the next card" means. A collapsed
|
|
348
|
+
* column keeps its cell: the *view* renders a rail instead of a list, but removing it from the
|
|
349
|
+
* projection would make `←`/`→` skip a slot that is still on screen.
|
|
350
|
+
*/
|
|
351
|
+
layout: readonly KanbanLaneView<Item, Col, Lane>[];
|
|
352
|
+
/**
|
|
353
|
+
* One cell's size — `paging.total(cell)` when known, else the loaded count. Never a paging
|
|
354
|
+
* artifact.
|
|
355
|
+
*
|
|
356
|
+
* **The board does not display this anywhere; the caller does.** It is what a `column.trailing`
|
|
357
|
+
* count chip reads, and it is public precisely so that deleting the built-in chip cost no
|
|
358
|
+
* capability.
|
|
359
|
+
*/
|
|
360
|
+
count: (cell: KanbanCell<Col, Lane>) => number;
|
|
361
|
+
/**
|
|
362
|
+
* The column's total across every lane. Equal to `count()` on an un-laned board — and the number a
|
|
363
|
+
* board-level header wants on a swimlane board, where one header names every lane's slice at once.
|
|
364
|
+
*
|
|
365
|
+
* Also the honest left-hand side of a caller-written capacity rule in `canMove`: a cap on "work in
|
|
366
|
+
* progress" is a property of the STAGE, not of one lane's slice of it.
|
|
367
|
+
*/
|
|
368
|
+
columnCount: (column: Col) => number;
|
|
369
|
+
hasMore: (cell: KanbanCell<Col, Lane>) => boolean;
|
|
370
|
+
/** Fire and forget; the state lands in `pending` / `failed` below. */
|
|
371
|
+
loadMore: (cell: KanbanCell<Col, Lane>) => void;
|
|
372
|
+
/** Cell keys with a request in flight. */
|
|
373
|
+
pending: ReadonlySet<string>;
|
|
374
|
+
/** Cell keys whose last request rejected. `retryLoad` is the ONLY way out. */
|
|
375
|
+
failed: ReadonlySet<string>;
|
|
376
|
+
retryLoad: (cell: KanbanCell<Col, Lane>) => void;
|
|
377
|
+
/** Is paging configured at all? The view renders no loader row without it. */
|
|
378
|
+
paged: boolean;
|
|
379
|
+
/** Echoed back so the view's observer needs no second copy of the config. */
|
|
380
|
+
pagingRootMargin: number | undefined;
|
|
381
|
+
collapsedColumns: ReadonlySet<Col>;
|
|
382
|
+
toggleColumn: (id: Col) => void;
|
|
383
|
+
collapsedLanes: ReadonlySet<Lane>;
|
|
384
|
+
toggleLane: (id: Lane) => void;
|
|
385
|
+
canMove: (move: KanbanMove<Col, Lane>) => boolean;
|
|
386
|
+
move: (move: KanbanMove<Col, Lane>) => void;
|
|
387
|
+
reorderColumns: boolean;
|
|
388
|
+
canMoveColumn: (move: KanbanColumnMove<Col>) => boolean;
|
|
389
|
+
moveColumn: (move: KanbanColumnMove<Col>) => void;
|
|
390
|
+
draft: KanbanDraft<Col, Lane> | null;
|
|
391
|
+
setDraft: (draft: KanbanDraft<Col, Lane> | null) => void;
|
|
392
|
+
grabbed: string | null;
|
|
393
|
+
setGrabbed: (id: string | null) => void;
|
|
394
|
+
/** Stable key for a cell — the identity `pending` / `failed` and every internal map are keyed by. */
|
|
395
|
+
cellKey: (cell: KanbanCell<Col, Lane>) => string;
|
|
396
|
+
columns: readonly KanbanColumn<Col>[];
|
|
397
|
+
lanes: readonly KanbanLane<Lane>[] | null;
|
|
398
|
+
card: (item: Item) => React.ReactNode;
|
|
399
|
+
getItemId: (item: Item) => string;
|
|
400
|
+
getItemLabel: (item: Item) => string;
|
|
401
|
+
isDisabled: (item: Item) => boolean;
|
|
402
|
+
isColumnDisabled: (column: Col) => boolean;
|
|
403
|
+
hasLanes: boolean;
|
|
404
|
+
}
|
|
405
|
+
/**
|
|
406
|
+
* The stable identity of one `(column, lane)` list.
|
|
407
|
+
*
|
|
408
|
+
* **Length-prefixed, not separator-joined**, and that is not fussiness: `pending`, `failed`, the
|
|
409
|
+
* bucket map and every paging decision are indexed by this string, so two cells colliding on one key
|
|
410
|
+
* would silently share a fetch. A separator alone only works while it cannot appear in a
|
|
411
|
+
* caller-declared id, which is an assumption about the CALLER's data — `("a|b", null)` and
|
|
412
|
+
* `("a", "b")` join to the same thing. The length prefix pins where the column ends, and the
|
|
413
|
+
* presence of the second delimiter distinguishes a `null` lane from one genuinely named `""`, so
|
|
414
|
+
* the mapping is injective for every input.
|
|
415
|
+
*/
|
|
416
|
+
declare function cellKey<Col extends string, Lane extends string>(cell: KanbanCell<Col, Lane>): string;
|
|
417
|
+
declare function useKanban<Item, const Col extends string = string, const Lane extends string = string>(options: UseKanbanOptions<Item, Col, Lane>): UseKanbanResult<Item, Col, Lane>;
|
|
418
|
+
|
|
419
|
+
interface KanbanBoardProps<Item, Col extends string = string, Lane extends string = string> {
|
|
420
|
+
/**
|
|
421
|
+
* The engine. **Required, and the board's only data channel** — no `items`/`columns`/`getItemId`
|
|
422
|
+
* of its own, because a second channel means props that are silently dead and duplicates that can
|
|
423
|
+
* disagree (`docs/api-policy.md` § one state owner).
|
|
424
|
+
*/
|
|
425
|
+
board: UseKanbanResult<Item, Col, Lane>;
|
|
426
|
+
/** Density — and the column WIDTH with it. There is no `columnWidth`. @default "md" */
|
|
427
|
+
size?: KanbanSize;
|
|
428
|
+
/**
|
|
429
|
+
* Whether a column draws a box. `false` gives it **no edge and no fill** — for a board already
|
|
430
|
+
* inside a framed region, where a box per column is a box inside a box.
|
|
431
|
+
*
|
|
432
|
+
* It governs the COLUMNS only. A card always draws its own box: the card is the drag item, the drop
|
|
433
|
+
* target and the tab stop, and one with no box would be a `cursor-grab` on a shape nothing paints.
|
|
434
|
+
*
|
|
435
|
+
* One exception, and it is the rail: a **COLLAPSED** column keeps its well even at `false`, because
|
|
436
|
+
* a rail holds no cards and its box is the only thing saying a column is folded there.
|
|
437
|
+
*
|
|
438
|
+
* A boolean rather than a union because it is an independent SWITCH, not a choice between answers
|
|
439
|
+
* (AGENTS §4): there is no second way to not-draw a box. _It replaces a `surface` prop over
|
|
440
|
+
* `elevated | outlined | subtle | plain`. Three of those members were an elevation control on a
|
|
441
|
+
* whole strip of columns — a statement about the PAGE the board sits on, not about the board — so a
|
|
442
|
+
* board that wants lifted columns lifts what owns the page instead (`<Card shadow="sm">` around it).
|
|
443
|
+
* `plain` was the only member answering a structural question, and this is that question._
|
|
444
|
+
* @default true
|
|
445
|
+
*/
|
|
446
|
+
bordered?: boolean;
|
|
447
|
+
/**
|
|
448
|
+
* Where a card's POINTER drag starts — the whole card, or a grip the card draws.
|
|
449
|
+
*
|
|
450
|
+
* Reach for `grip` when the card body is genuinely interactive. `card` bails out of a gesture that
|
|
451
|
+
* began on a `button`/`a`/`input`/`select`/`textarea`/`[contenteditable]`/`[data-kanban-nodrag]`,
|
|
452
|
+
* which covers the common cases, but that list is a guess about a node the board never wrote — a
|
|
453
|
+
* checkbox row, a slider, a label a reader wants to select all start a drag instead. `grip` answers
|
|
454
|
+
* it structurally: the card stops dragging, and the glyph is the only place a drag begins.
|
|
455
|
+
*
|
|
456
|
+
* It governs BOTH drag axes: with `columnReorder` on, `grip` also moves the column gesture onto a
|
|
457
|
+
* grip at the head of the column header and stops the header itself dragging. A board that dragged
|
|
458
|
+
* its cards from a glyph but its columns from anywhere would answer the same press two ways.
|
|
459
|
+
*
|
|
460
|
+
* Nothing about the KEYBOARD changes on either axis. The card keeps its tab stop and its
|
|
461
|
+
* space/enter grab, the header keeps its tab stop and its `Alt`+arrow move, because a grip is a
|
|
462
|
+
* pointer affordance — the reader's hand never left the card.
|
|
463
|
+
* @default "card"
|
|
464
|
+
*/
|
|
465
|
+
handle?: KanbanHandle;
|
|
466
|
+
/**
|
|
467
|
+
* `auto` takes the board's height from its tallest column; `fill` takes it from the parent and
|
|
468
|
+
* moves the scrolling inside each column. ONE union, never a `fillHeight` boolean pair — `fill`
|
|
469
|
+
* needs a bounded parent (a flex/grid child with `min-h-0`) to have anything to fill.
|
|
470
|
+
* @default "auto"
|
|
471
|
+
*/
|
|
472
|
+
height?: KanbanHeight;
|
|
473
|
+
/** The BOARD-level initial state: skeleton cards in every column. Per-cell paging has its own. */
|
|
474
|
+
loading?: boolean;
|
|
475
|
+
/** The board region's accessible name. A `<section>` with no name is not a landmark. */
|
|
476
|
+
"aria-label"?: string;
|
|
477
|
+
/** The board region's accessible name, by reference. */
|
|
478
|
+
"aria-labelledby"?: string;
|
|
479
|
+
/** Layout/spacing only, merged via `cn()`. */
|
|
480
|
+
/** Override the component's own copy — the column expand/collapse controls, the actions menu
|
|
481
|
+
* tooltip, the paging row, an empty column's fallback line, and every sentence the keyboard
|
|
482
|
+
* drag announces. Merges under `<JenosizeUIProvider labels={{ kanbanBoard }}>`; see
|
|
483
|
+
* `docs/i18n-policy.md`. */
|
|
484
|
+
labels?: KanbanBoardLabels;
|
|
485
|
+
className?: string;
|
|
486
|
+
}
|
|
487
|
+
declare function KanbanBoard<Item, Col extends string = string, Lane extends string = string>(props: KanbanBoardProps<Item, Col, Lane>): React.JSX.Element;
|
|
488
|
+
|
|
489
|
+
export { KanbanBoard, type KanbanBoardProps, type KanbanCell, type KanbanCellView, type KanbanColumn, type KanbanColumnActions, type KanbanColumnMove, type KanbanColumnReorder, type KanbanDraft, type KanbanHandle, type KanbanHeight, type KanbanLane, type KanbanLaneView, type KanbanLanesOptions, type KanbanLoadMore, type KanbanMove, type KanbanPosition, type KanbanSize, type UseKanbanOptions, type UseKanbanResult, cellKey, useKanban };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use client";export { KanbanBoard, cellKey, useKanban } from './chunk-4VGEJG4M.js';
|
|
2
|
+
import './chunk-5ZPUAGOP.js';
|
|
3
|
+
import './chunk-P6CON2R2.js';
|
|
4
|
+
import './chunk-6B6BWTXC.js';
|
|
5
|
+
import './chunk-LLPWQDF7.js';
|
|
6
|
+
import './chunk-LO22VQL5.js';
|
|
7
|
+
import './chunk-PO2TYK3C.js';
|
|
8
|
+
import './chunk-FKVPAEJ6.js';
|
|
9
|
+
import './chunk-45Y2ZGNK.js';
|
|
10
|
+
import './chunk-LCG34A5T.js';
|
|
11
|
+
import './chunk-5AZKP4KZ.js';
|
|
12
|
+
import './chunk-AZ7DKRBY.js';
|
|
13
|
+
import './chunk-MCQG4H6T.js';
|
|
14
|
+
import './chunk-O2LG3PNI.js';
|
|
15
|
+
import './chunk-EDSK6FEH.js';
|
|
16
|
+
import './chunk-52IFGFTL.js';
|
|
17
|
+
import './chunk-KZP6B6B3.js';
|
|
18
|
+
import './chunk-AFYXSZGW.js';
|
|
19
|
+
import './chunk-O4GRKO3I.js';
|
|
20
|
+
import './chunk-BLIZ3CL3.js';
|
|
21
|
+
import './chunk-ZSNJ6UA3.js';
|
|
22
|
+
import './chunk-RJTVCA62.js';
|
|
23
|
+
import './chunk-QDYE5LVT.js';
|
|
24
|
+
//# sourceMappingURL=kanban-board.js.map
|
|
25
|
+
//# sourceMappingURL=kanban-board.js.map
|