jenosize-ui 0.1.0 → 0.2.0

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.
Files changed (169) hide show
  1. package/README.md +10 -7
  2. package/dist/Cartesian-ZIKPEYWP.d.ts +26 -0
  3. package/dist/area-chart.d.ts +53 -0
  4. package/dist/area-chart.js +8 -0
  5. package/dist/avatar.d.ts +19 -0
  6. package/dist/avatar.js +12 -7
  7. package/dist/badge.js +5 -5
  8. package/dist/bar-chart.d.ts +31 -0
  9. package/dist/bar-chart.js +8 -0
  10. package/dist/breadcrumb.js +3 -3
  11. package/dist/button.d.ts +11 -1
  12. package/dist/button.js +9 -8
  13. package/dist/calendar.js +14 -12
  14. package/dist/callout.js +10 -9
  15. package/dist/card.d.ts +52 -2
  16. package/dist/card.js +6 -2
  17. package/dist/checkbox.js +6 -5
  18. package/dist/chunk-34J5AANZ.js +605 -0
  19. package/dist/{chunk-D6TPWNRK.js → chunk-3GT43XPK.js} +5 -5
  20. package/dist/{chunk-3Y5X7B5C.js → chunk-3Z3SDKIA.js} +6 -11
  21. package/dist/{chunk-MQGD2OUF.js → chunk-42FCPC77.js} +3 -3
  22. package/dist/{chunk-Z3ETJN5G.js → chunk-4BRMM3I5.js} +6 -11
  23. package/dist/{chunk-WZQFC7ZN.js → chunk-4HKDD3PR.js} +55 -16
  24. package/dist/chunk-4K6V6NNK.js +169 -0
  25. package/dist/{chunk-ZZA2LUTL.js → chunk-4R7WDDCW.js} +41 -16
  26. package/dist/{chunk-BJUZVYQC.js → chunk-4W6AYGLR.js} +12 -12
  27. package/dist/{chunk-4OLULPQG.js → chunk-54S5CUY6.js} +8 -5
  28. package/dist/{chunk-GRLSUQQE.js → chunk-5JRM3OES.js} +4 -4
  29. package/dist/chunk-5ZPUAGOP.js +19 -0
  30. package/dist/{chunk-W5GGOUUI.js → chunk-6HJA7NPL.js} +3 -3
  31. package/dist/{chunk-CME4DIML.js → chunk-6IUTVDNI.js} +22 -3
  32. package/dist/chunk-6UBYHSBX.js +147 -0
  33. package/dist/{chunk-HMUZE6EK.js → chunk-74HPBSVY.js} +3 -3
  34. package/dist/chunk-75M43ELV.js +366 -0
  35. package/dist/chunk-763VS2FY.js +10 -0
  36. package/dist/chunk-7HV6EIGZ.js +26 -0
  37. package/dist/chunk-7VLYQR4D.js +44 -0
  38. package/dist/{chunk-D5BTFSL7.js → chunk-A46ED5JQ.js} +3 -3
  39. package/dist/{chunk-W46K56XU.js → chunk-A5WQLN4B.js} +8 -24
  40. package/dist/chunk-AC6ZWKRN.js +23 -0
  41. package/dist/{chunk-E7ZSWBAK.js → chunk-BD5YKFRA.js} +4 -4
  42. package/dist/chunk-BLIZ3CL3.js +49 -0
  43. package/dist/{chunk-DRZCJCBO.js → chunk-BNIWT6CW.js} +4 -4
  44. package/dist/{chunk-JVJRHBTD.js → chunk-C6OTOTKI.js} +21 -8
  45. package/dist/chunk-CTENRS34.js +60 -0
  46. package/dist/{chunk-7IU5TMFL.js → chunk-CWMFEF6R.js} +75 -27
  47. package/dist/{chunk-JTNFJLIY.js → chunk-DCGTB7P7.js} +13 -13
  48. package/dist/{chunk-GFOAJVW5.js → chunk-DJYWPJZ3.js} +3 -3
  49. package/dist/{chunk-MUFHLP4S.js → chunk-DTMYD63D.js} +11 -22
  50. package/dist/{chunk-KDLPXXD2.js → chunk-EDOUI2BG.js} +4 -4
  51. package/dist/{chunk-R6RGJF4L.js → chunk-EDT5J5WK.js} +4 -4
  52. package/dist/{chunk-PWKWNDBS.js → chunk-EX374YWB.js} +6 -6
  53. package/dist/{chunk-F2K7VJUV.js → chunk-FFTRB2UU.js} +4 -4
  54. package/dist/chunk-FIGBJGH2.js +1474 -0
  55. package/dist/chunk-FKVPAEJ6.js +57 -0
  56. package/dist/{chunk-J7ZQQFPT.js → chunk-FZBZGA3P.js} +17 -17
  57. package/dist/{chunk-T7FCG7XV.js → chunk-GAFGIT4Q.js} +10 -10
  58. package/dist/chunk-HSVBTIP2.js +482 -0
  59. package/dist/{chunk-FHHAPGCR.js → chunk-ILICYNK7.js} +3 -3
  60. package/dist/{chunk-WFY7DKQD.js → chunk-JAVNGTOE.js} +9 -14
  61. package/dist/{chunk-7HOIZ3UO.js → chunk-JMWYCT63.js} +6 -6
  62. package/dist/{chunk-QA74ITR4.js → chunk-JUWDRRD6.js} +45 -17
  63. package/dist/{chunk-BVJWBYIG.js → chunk-JXHZHUB3.js} +4 -4
  64. package/dist/{chunk-VWC72TR3.js → chunk-JYBGO6GY.js} +7 -7
  65. package/dist/{chunk-J36M3KRX.js → chunk-L53Y7KUV.js} +13 -11
  66. package/dist/chunk-LBYCCLVI.js +33 -0
  67. package/dist/chunk-LCG34A5T.js +98 -0
  68. package/dist/chunk-M5TVCASC.js +75 -0
  69. package/dist/chunk-MCUASLZH.js +10 -0
  70. package/dist/{chunk-5RAPA22E.js → chunk-MD4AR43X.js} +4 -4
  71. package/dist/{chunk-JP26LPCY.js → chunk-MYQ3FD4Y.js} +25 -11
  72. package/dist/chunk-NA35YZRD.js +252 -0
  73. package/dist/chunk-NKDW6C7K.js +10 -0
  74. package/dist/{chunk-5NOBSXJN.js → chunk-NMERLWT7.js} +6 -6
  75. package/dist/{chunk-KMSYEE23.js → chunk-P6CON2R2.js} +25 -11
  76. package/dist/{chunk-LME57Z6J.js → chunk-P7DH62UY.js} +6 -6
  77. package/dist/chunk-PO2TYK3C.js +17 -0
  78. package/dist/{chunk-5FATN5YD.js → chunk-PXEJ5RKO.js} +4 -4
  79. package/dist/{chunk-JYGR44ZC.js → chunk-QBHQOX23.js} +6 -6
  80. package/dist/{chunk-GCVA3OIV.js → chunk-QDYE5LVT.js} +13 -3
  81. package/dist/{chunk-J2BCKBHC.js → chunk-QKDEQFOQ.js} +4 -4
  82. package/dist/{chunk-ZOOX3TUB.js → chunk-RIXEUAPY.js} +5 -5
  83. package/dist/{chunk-THC2ISYP.js → chunk-RNXRZGXN.js} +4 -4
  84. package/dist/{chunk-7EWQKTNQ.js → chunk-T2WAD4QP.js} +15 -13
  85. package/dist/{chunk-KNYKWUYX.js → chunk-TBN644IN.js} +3 -3
  86. package/dist/{chunk-MKC5HNA7.js → chunk-USL3TDZM.js} +101 -90
  87. package/dist/{chunk-CYPPEUX5.js → chunk-VEOYCAJP.js} +4 -9
  88. package/dist/{chunk-WEUJYDCV.js → chunk-VH35QHD4.js} +6 -6
  89. package/dist/chunk-VWGAMOSE.js +188 -0
  90. package/dist/{chunk-SV56BSUQ.js → chunk-WKWAUU64.js} +4 -4
  91. package/dist/chunk-X2X7Q7NW.js +17 -0
  92. package/dist/{chunk-I7WU4GTY.js → chunk-YLEHYDXC.js} +5 -5
  93. package/dist/combobox.js +12 -10
  94. package/dist/control-size-CaxQhkKh.d.ts +3 -0
  95. package/dist/date-input.js +9 -8
  96. package/dist/date-picker.js +20 -17
  97. package/dist/dialog.d.ts +16 -4
  98. package/dist/dialog.js +8 -6
  99. package/dist/drawer.d.ts +9 -2
  100. package/dist/drawer.js +7 -5
  101. package/dist/dropdown-menu.d.ts +14 -2
  102. package/dist/dropdown-menu.js +7 -3
  103. package/dist/dropzone.d.ts +34 -0
  104. package/dist/dropzone.js +22 -0
  105. package/dist/form.d.ts +78 -0
  106. package/dist/form.js +176 -32
  107. package/dist/header-navigation.d.ts +15 -4
  108. package/dist/header-navigation.js +19 -14
  109. package/dist/index.d.ts +26 -4
  110. package/dist/index.js +76 -56
  111. package/dist/indicator.js +4 -4
  112. package/dist/input.js +8 -7
  113. package/dist/kanban-board.d.ts +549 -0
  114. package/dist/kanban-board.js +23 -0
  115. package/dist/line-chart.d.ts +35 -0
  116. package/dist/line-chart.js +8 -0
  117. package/dist/{nav-Bla0o_-1.d.ts → nav-DcCyt00p.d.ts} +8 -11
  118. package/dist/number-input.js +8 -7
  119. package/dist/pagination.js +12 -9
  120. package/dist/panel-El4oI68p.d.ts +9 -0
  121. package/dist/payment-input.js +8 -7
  122. package/dist/pie-chart.d.ts +60 -0
  123. package/dist/pie-chart.js +8 -0
  124. package/dist/popover.d.ts +9 -3
  125. package/dist/popover.js +7 -5
  126. package/dist/progress-steps.d.ts +275 -0
  127. package/dist/progress-steps.js +8 -0
  128. package/dist/progress.js +2 -2
  129. package/dist/radar-chart.d.ts +73 -0
  130. package/dist/radar-chart.js +8 -0
  131. package/dist/radial-chart.d.ts +69 -0
  132. package/dist/radial-chart.js +8 -0
  133. package/dist/radio.js +6 -5
  134. package/dist/rule-BqzaIwJy.d.ts +80 -0
  135. package/dist/scroll-area.d.ts +62 -0
  136. package/dist/scroll-area.js +7 -0
  137. package/dist/select.d.ts +1 -2
  138. package/dist/select.js +15 -13
  139. package/dist/separator.d.ts +114 -0
  140. package/dist/separator.js +5 -0
  141. package/dist/sidebar-navigation.d.ts +54 -7
  142. package/dist/sidebar-navigation.js +15 -8
  143. package/dist/skeleton.d.ts +61 -0
  144. package/dist/skeleton.js +5 -0
  145. package/dist/styles.css +1 -1
  146. package/dist/surface-DFyDnrTJ.d.ts +34 -0
  147. package/dist/switch.js +2 -2
  148. package/dist/table.d.ts +94 -38
  149. package/dist/table.js +32 -28
  150. package/dist/tabs.js +2 -2
  151. package/dist/tag-input.js +11 -10
  152. package/dist/tag.js +3 -3
  153. package/dist/textarea.js +6 -5
  154. package/dist/theme.css +82 -0
  155. package/dist/theme.js +10 -9
  156. package/dist/toast.js +10 -9
  157. package/dist/tooltip-surface-Dmvb8v5K.d.ts +35 -0
  158. package/dist/tooltip.d.ts +15 -1
  159. package/dist/tooltip.js +3 -2
  160. package/dist/tree.js +6 -5
  161. package/dist/types-6kvYwtRH.d.ts +156 -0
  162. package/dist/use-uploads-ButS4dGe.d.ts +473 -0
  163. package/dist/verification-code-input.d.ts +84 -0
  164. package/dist/verification-code-input.js +13 -0
  165. package/package.json +59 -9
  166. package/dist/card-nWicloNi.d.ts +0 -80
  167. package/dist/chunk-24TO7E32.js +0 -42
  168. package/dist/chunk-FXIBGTS5.js +0 -14
  169. package/dist/chunk-ZZT2E5VT.js +0 -24
@@ -0,0 +1,549 @@
1
+ import * as React from 'react';
2
+ import { c as SurfaceVariant } from './surface-DFyDnrTJ.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
+ * The column's surface — **`<Card>`'s variant union, DERIVED**, plus a `plain` member Card has no
30
+ * need for.
31
+ *
32
+ * `SurfaceVariant` is the same type `CardVariant` aliases, so this is not a list that happens to
33
+ * match Card's: it is Card's, and a fourth Card variant lands here (and in {@link COLUMN_SURFACE},
34
+ * which spreads the map) without a second edit. There is one name to learn for both.
35
+ *
36
+ * - **`elevated`** — a raised panel: `bg-primary_alt` + `shadow-sm` in light, one stop UP in dark.
37
+ * Legal, but not the default: a column is a named REGION holding objects, not a panel that lifts
38
+ * off the page. Note what it does to the cards, which default to `outlined` and would then share
39
+ * its fill exactly — a board that lifts its columns should sink its cards ({@link
40
+ * KanbanCardSurface}) in the same breath.
41
+ * - **`outlined`** (default) — flush with the page, hairline edge. The shipped board.
42
+ * - **`subtle`** — a sunken well (`bg-sunken`): gray in light, pure black in dark. The column recedes
43
+ * and the cards read as objects dropped into it. What the board looked like before `outlined`.
44
+ * - **`plain`** — no fill, no edge. For a board already inside a framed region, where a box per
45
+ * column is a box inside a box.
46
+ *
47
+ * Everything a member does NOT touch is fixed: the geometry, the header, and the cards. Toggling the
48
+ * prop cannot reflow a board.
49
+ */
50
+ type KanbanSurface = SurfaceVariant | "plain";
51
+ /**
52
+ * The CARD's surface — the same `<Card>` union as {@link KanbanSurface}, **minus `plain`**.
53
+ *
54
+ * A card is the object the reader picks up: it is the drag item, the drop target and the tab stop,
55
+ * and a `plain` one would be a grab handle with no box at all — the cursor promising a gesture on a
56
+ * shape nothing draws. A column may recede to nothing because it is a REGION (its header still names
57
+ * it); a card may not, because it IS the thing. That is why the exclusion is in the type rather than
58
+ * a dev-warn: the state must not be spellable (AGENTS §4).
59
+ *
60
+ * `outlined` (default) is flat · `elevated` reads as sitting above its column · `subtle` recedes,
61
+ * which is the pairing for an `elevated` column.
62
+ *
63
+ * **The default MATCHES the column's**, which is the one pairing where the two fills are identical:
64
+ * `#FFF` on `#FFF` in light, gray-950 on gray-950 in dark, so the card's 1px `ring-secondary` edge is
65
+ * the entire separation. That is the intended house look — flat, two hairlines, no shadow anywhere —
66
+ * and it is a deliberate departure from the surface table's own advice, which pairs an `elevated`
67
+ * object with an `outlined` host. A board that wants the object reading to come back moves ONE of the
68
+ * two: `cardSurface="elevated"` (cards lift) or `surface="subtle"` (the column sinks under them).
69
+ */
70
+ type KanbanCardSurface = SurfaceVariant;
71
+
72
+ /**
73
+ * The two affordances a column header offers, as ONE object rather than two loose props.
74
+ *
75
+ * `add` is a **named field**, not an entry in a generic action list, because the `+` is universal on
76
+ * boards and is always the rightmost control — a list would let a caller spell it in the wrong place
77
+ * or twice. `menu` reuses `DropdownMenu`'s recursive item union rather than minting a second action
78
+ * vocabulary for the same job (AGENTS §11 — the menu's rows ARE actions, and that union already
79
+ * names every one of them).
80
+ */
81
+ interface KanbanColumnActions<Col extends string = string> {
82
+ /**
83
+ * The `+`. One icon button, pinned rightmost in the header.
84
+ *
85
+ * `label` is its accessible name (the glyph carries no text), and `onClick` receives the column it
86
+ * belongs to, so one handler can serve every column.
87
+ */
88
+ add?: {
89
+ label: string;
90
+ /** Override the default `+` glyph. Component-owned chrome, so it is NOT a `leading` slot. */
91
+ icon?: React.ReactNode;
92
+ onClick: (columnId: Col) => void;
93
+ };
94
+ /** The `⋯`. Rendered through `<DropdownMenu>` — same union, same behaviours, no second grammar. */
95
+ menu?: readonly DropdownMenuItem[];
96
+ }
97
+ /** One declared slot on the board. The column set is the enumerable thing a board is built from. */
98
+ interface KanbanColumn<Col extends string = string> {
99
+ /** Stable identity, and the value `getColumnId(item)` is matched against. */
100
+ id: Col;
101
+ title: React.ReactNode;
102
+ /**
103
+ * The status glyph beside the title — a caller node, so it goes through `src/lib/slot.tsx` and is
104
+ * **never** `aria-hidden`ed (docs/slot-policy.md). The header's own chrome (the `⋯`, the `+`, the
105
+ * collapse chevron) is component-owned and does NOT go through `<Slot>`.
106
+ */
107
+ leading?: React.ReactNode;
108
+ /**
109
+ * The header's right side, after the title and before the `⋯`/`+`. Same slot contract as
110
+ * {@link KanbanColumn.leading} — `<Slot>`, never `aria-hidden`ed, and the caller owns the node's
111
+ * size AND its a11y semantics.
112
+ *
113
+ * **This is where a count goes, and the board no longer draws one.** The header used to ship a
114
+ * built-in count chip fed by `board.count()`, plus a `wipLimit` that turned it into `2/3` in amber
115
+ * — both are gone, because the board was choosing what a header SAYS while this file claimed the
116
+ * caller owns exactly that.
117
+ *
118
+ * **The count comes from the caller's own `items`, not from `board`.** `columns` is an INPUT to
119
+ * `useKanban`, so `board` is still in its temporal dead zone while this node is built — a
120
+ * `trailing: <Badge>{board.count(…)}</Badge>` throws a `ReferenceError` on the first render. The
121
+ * caller holds `items` anyway, so the tally is theirs:
122
+ *
123
+ * ```tsx
124
+ * const counts = React.useMemo(() => {
125
+ * const n: Record<string, number> = {};
126
+ * for (const t of tickets) n[t.status] = (n[t.status] ?? 0) + 1;
127
+ * return n;
128
+ * }, [tickets]);
129
+ *
130
+ * const columns = React.useMemo(
131
+ * () => STAGES.map((c) => ({ ...c, trailing: <Badge seamless shape="pill" size="sm">{counts[c.id] ?? 0}</Badge> })),
132
+ * [counts]
133
+ * );
134
+ * ```
135
+ *
136
+ * `board.count` / `board.columnCount` are for everything evaluated AFTER the hook returns — a
137
+ * `canMove` capacity rule (deferred, so the TDZ has closed by the time it runs), a toolbar beside
138
+ * the board, a `<KanbanBoard>` sibling. They are also the only place `paging.total` is resolved
139
+ * ahead of the loaded length, so a paged board's chip should read the same `total` callback the
140
+ * caller already wrote rather than counting rows it has not fetched.
141
+ *
142
+ * `seamless` is the right chip recipe here for the reason it always was (AGENTS §4): it drops the
143
+ * badge's colour AND its vertical box, so the node tracks the header's text colour by plain CSS
144
+ * inheritance and cannot push the header's height. A coloured `<Badge>` in this slot is legal —
145
+ * it will just set the header's height, which is now the caller's problem to see and accept.
146
+ */
147
+ trailing?: React.ReactNode;
148
+ actions?: KanbanColumnActions<Col>;
149
+ /** What the column shows at zero cards. The `<ul>` still renders, so it stays a drop target. */
150
+ emptyMessage?: React.ReactNode;
151
+ /**
152
+ * Can the reader collapse this column to a rail? @default false
153
+ *
154
+ * Collapse is OPT-IN: most boards want every column readable at once, and a rail the caller never
155
+ * asked for is a control that only ever hides work. Leaving it off (or `false`) hides the control
156
+ * AND makes the column immune to `defaultCollapsedColumns` — a declaration that state could
157
+ * override would be a lie.
158
+ */
159
+ collapsible?: boolean;
160
+ /** Refuses every drop, in and out, and dims its cards. */
161
+ disabled?: boolean;
162
+ /** Layout/spacing only, merged via `cn()`. */
163
+ className?: string;
164
+ }
165
+ /** One declared swimlane — a row that crosses every column. */
166
+ interface KanbanLane<Lane extends string = string> {
167
+ id: Lane;
168
+ title: React.ReactNode;
169
+ /** A caller node, same contract as {@link KanbanColumn.leading}. */
170
+ leading?: React.ReactNode;
171
+ /** Can the reader collapse this lane? Opt-in, same as {@link KanbanColumn.collapsible}. @default false */
172
+ collapsible?: boolean;
173
+ }
174
+ /**
175
+ * One addressable list of cards — the intersection of a column and a lane.
176
+ *
177
+ * **`lane` is `null` on an un-laned board, never `undefined`.** That is load-bearing twice: the cell
178
+ * key stringifies it, and `undefined` is indistinguishable from a legitimately-absent property in an
179
+ * object literal a caller builds by hand — so a typo would silently address a different cell.
180
+ */
181
+ interface KanbanCell<Col extends string = string, Lane extends string = string> {
182
+ column: Col;
183
+ lane: Lane | null;
184
+ }
185
+ interface KanbanPosition<Col extends string = string, Lane extends string = string> extends KanbanCell<Col, Lane> {
186
+ /**
187
+ * **Two indices wear this one `number`, and they differ exactly where off-by-one lands.**
188
+ *
189
+ * - On `KanbanMove.from` it is the **source index**: the card's position in the list it is
190
+ * leaving, *before* removal.
191
+ * - On `KanbanMove.to` it is the **destination index**: its position in the target list *after*
192
+ * the card has been removed from its source — the `arrayMove` convention.
193
+ *
194
+ * They agree for every cross-list move and disagree for a same-list one. Dragging `[A, B, C]`
195
+ * index 0 to the end is `from.index: 0, to.index: 2` — **not 3**. `dnd.ts`'s `toMove()` applies
196
+ * that correction in exactly one place and every consumer reads its output; two call sites
197
+ * computing it independently is the classic bug this note exists to prevent. A worked example is
198
+ * in `docs/components/kanban-board.md` § Usage.
199
+ */
200
+ index: number;
201
+ }
202
+ /** A card move, reported for the caller to apply. The hook holds no shadow copy of `items`. */
203
+ interface KanbanMove<Col extends string = string, Lane extends string = string> {
204
+ id: string;
205
+ from: KanbanPosition<Col, Lane>;
206
+ to: KanbanPosition<Col, Lane>;
207
+ }
208
+ /**
209
+ * A column-order move. `index` is the destination in the `columns` array **after** the column has
210
+ * been removed from its current position — the same `arrayMove` convention as
211
+ * {@link KanbanPosition.index}, normalised once by `dnd.ts`'s `toColumnMove()`.
212
+ */
213
+ interface KanbanColumnMove<Col extends string = string> {
214
+ id: Col;
215
+ index: number;
216
+ }
217
+
218
+ /**
219
+ * The shared pointer/touch **drag layer** — threshold arbitration, listener lifetime, the draft
220
+ * lifecycle, `Escape`, and edge autoscroll. It knows **nothing** about calendars, times or trees.
221
+ *
222
+ * ## Why this is hand-rolled and not a library
223
+ *
224
+ * The honest count of drag libraries that fit both the calendar and the tree is **zero**, so a
225
+ * unifying layer is ours either way. Two facts decided it:
226
+ *
227
+ * 1. **dnd-kit's `createSnapModifier` snaps the visual TRANSFORM only.** A modifier receives
228
+ * `{ transform }` and returns a transform; it cannot alter reported coordinates or collision
229
+ * results. So the ghost snaps to a pixel grid while `onDragEnd` hands back the raw `event.delta`
230
+ * — the domain value gets computed a **second** time, in different units, in a different file,
231
+ * and the two must agree. That is exactly the *"the event landed at 14:03"* bug class. This layer
232
+ * inverts it: **the caller snaps in domain units and derives pixels.** One source of truth.
233
+ * 2. **There is no stable dnd-kit to adopt.** `@dnd-kit/core@6.3.1` last published ~2 years ago and
234
+ * its docs repo is archived read-only; the `@dnd-kit/react` rewrite is pre-1.0 (v0.5.0) with a
235
+ * breaking event-type redesign one minor ago. Pragmatic's element adapter *is* native HTML5 DnD,
236
+ * which is broken on touch — the reason the tree plan rejected HTML5 DnD in the first place.
237
+ *
238
+ * For continuous time geometry, dnd-kit also reduces to a sensor library: all four of its collision
239
+ * algorithms work on *registered droppable rects*, and a week grid means either 336 droppables (7 ×
240
+ * 48, measured and collision-tested per move) or zero, which switches off its core feature.
241
+ *
242
+ * ## Mouse and touch are SEPARATE paths — not unified PointerEvents
243
+ *
244
+ * The one non-obvious design decision here, and it is evidence-based. From dnd-kit's own
245
+ * PointerSensor docs: *"For Pointer Events, there is no way to prevent the default behaviour of the
246
+ * browser on touch devices when interacting with a draggable element from the pointer event
247
+ * listeners"*, and *"using `touch-action: none;` is the only way to reliably prevent scrolling for
248
+ * pointer events"* — which, once a `pointerdown` has fired, cannot be changed. Their own
249
+ * recommendation is Mouse + Touch sensors, because *"touch events do not suffer the same
250
+ * limitations … it is possible to prevent the page from scrolling in `touchmove` events."*
251
+ *
252
+ * Why it bites here specifically: a week grid is a **vertically scrolling** container whose surface
253
+ * is mostly covered by draggable event blocks. `touch-action: none` on every block would kill
254
+ * scroll-by-touch over that surface. So mouse activates on a 4px **threshold** (a click is never a
255
+ * drag) and touch activates on a 250ms **long-press** (a quick swipe still scrolls), with
256
+ * `preventDefault()` in `touchmove` only **after** the drag is confirmed.
257
+ *
258
+ * Lives in `src/lib/` beside `scrollport.ts` for the same reason that one does: it is invisible to
259
+ * the dependency-graph gate, so two components can share a foundation without importing each other.
260
+ */
261
+
262
+ interface Point {
263
+ x: number;
264
+ y: number;
265
+ }
266
+
267
+ /**
268
+ * Present ⇒ swimlanes are on.
269
+ *
270
+ * Both fields are genuinely required, so `{}` is rejected without reaching for `AtLeastOne` —
271
+ * Tree's `reorder` lesson: a required field does that job on its own, and `AtLeastOne` would only
272
+ * make both optional again.
273
+ */
274
+ interface KanbanLanesOptions<Item, Lane extends string = string> {
275
+ lanes: readonly KanbanLane<Lane>[];
276
+ /** `NoInfer` so `Lane` is inferred from `lanes` ONLY — a stray key is an error, not a widening. */
277
+ getLaneId: (item: Item) => NoInfer<Lane>;
278
+ }
279
+ /** Present ⇒ the column headers are draggable. Required `onColumnMove` rejects `{}` on its own. */
280
+ interface KanbanColumnReorder<Col extends string = string> {
281
+ /** Reports the intent. **The caller reorders the `columns` array** — the hook holds no order. */
282
+ onColumnMove: (move: KanbanColumnMove<Col>) => void;
283
+ /** Narrows the structural veto; it can never re-allow what the structure already refused. */
284
+ canMoveColumn?: (move: KanbanColumnMove<Col>) => boolean;
285
+ }
286
+ /**
287
+ * Present ⇒ infinite scroll, per cell. Two required fields, so `{}` is rejected on its own.
288
+ *
289
+ * **The hook NEVER holds the fetched cards.** `loadMore` resolves once the caller has appended them
290
+ * to `items`, exactly as `useTree`'s `loadChildren` → `onChildrenLoaded` does — with the merge step
291
+ * deleted, because a board's merge is `items.concat(page)` and needs no helper.
292
+ */
293
+ interface KanbanLoadMore<Col extends string = string, Lane extends string = string> {
294
+ /** Is there another page? Consulted before firing and again after every resolve. */
295
+ hasMore: (cell: KanbanCell<Col, Lane>) => boolean;
296
+ /** Fetch it. **Reject to mark the cell failed** — the rejection never reaches render. */
297
+ loadMore: (cell: KanbanCell<Col, Lane>) => Promise<void>;
298
+ /**
299
+ * The server-side total, for the count chip and the WIP check.
300
+ *
301
+ * `hasMore` owns *firing*; this owns *display*. Omit it and both fall back to the loaded count —
302
+ * which is a paging artifact, so a column holding 400 rows would read "3".
303
+ */
304
+ total?: (cell: KanbanCell<Col, Lane>) => number;
305
+ /** How far from the bottom the loader button auto-fires, in px. @default 240 */
306
+ rootMargin?: number;
307
+ }
308
+ interface UseKanbanOptions<Item, Col extends string = string, Lane extends string = string> {
309
+ /** The caller's own domain objects. Their ORDER within a cell *is* the card order. */
310
+ items: readonly Item[];
311
+ /** The enumerable slot declaration the whole data-first classification rests on. */
312
+ columns: readonly KanbanColumn<Col>[];
313
+ getItemId: (item: Item) => string;
314
+ /** `NoInfer` so `Col` is inferred from `columns` only — a stray status is an error. */
315
+ getColumnId: (item: Item) => NoInfer<Col>;
316
+ /**
317
+ * **The one string the library reads.** The card body is an opaque node, which leaves nothing for
318
+ * the move announcement, the keyboard grab readout, or the drag ghost — so this accessor exists,
319
+ * and the body stays 100 % opaque. (`Tree` hit the same wall and answered it with
320
+ * `TreeNode.ariaLabel`.)
321
+ */
322
+ getItemLabel: (item: Item) => string;
323
+ /**
324
+ * **DATA → NODE, and required.** The library never parses what comes back.
325
+ *
326
+ * Required rather than optional because a board has no metadata vocabulary to fall back on — an
327
+ * absent `card` would render empty boxes, where `Table`'s absent `cell` still has `column.value`.
328
+ */
329
+ card: (item: Item) => React.ReactNode;
330
+ /**
331
+ * Required, because card drag is always on. **A read-only board is `canMove: () => false`**, not a
332
+ * second mode — one code path, and a required field rejects `{}` for a better reason than a
333
+ * clever type would.
334
+ */
335
+ onMove: (move: KanbanMove<Col, Lane>) => void;
336
+ /** The caller's veto. It only ever NARROWS the structural rules; it cannot re-allow. */
337
+ canMove?: (move: KanbanMove<Col, Lane>) => boolean;
338
+ /** Cards that refuse to move, in or out. */
339
+ disabledItems?: (item: Item) => boolean;
340
+ lanes?: KanbanLanesOptions<Item, Lane>;
341
+ columnReorder?: false | KanbanColumnReorder<Col>;
342
+ paging?: false | KanbanLoadMore<Col, Lane>;
343
+ collapsedColumns?: ReadonlySet<NoInfer<Col>> | readonly NoInfer<Col>[];
344
+ defaultCollapsedColumns?: readonly NoInfer<Col>[];
345
+ onCollapsedColumnsChange?: (ids: ReadonlySet<Col>) => void;
346
+ collapsedLanes?: ReadonlySet<NoInfer<Lane>> | readonly NoInfer<Lane>[];
347
+ defaultCollapsedLanes?: readonly NoInfer<Lane>[];
348
+ onCollapsedLanesChange?: (ids: ReadonlySet<Lane>) => void;
349
+ }
350
+ interface KanbanCellView<Item, Col extends string, Lane extends string> {
351
+ column: Col;
352
+ lane: Lane | null;
353
+ /** The caller's order, filtered. Never sorted, never stabilised. */
354
+ items: readonly Item[];
355
+ }
356
+ interface KanbanLaneView<Item, Col extends string, Lane extends string> {
357
+ /** `null` on an un-laned board — where `layout` holds exactly one entry. */
358
+ lane: KanbanLane<Lane> | null;
359
+ /** **Dense** — one cell per declared column, in `columns` order, even when empty. */
360
+ cells: readonly KanbanCellView<Item, Col, Lane>[];
361
+ }
362
+ /**
363
+ * A move in progress, published so the ghost, the source placeholder, the drop indicator **and**
364
+ * keyboard grab mode all render from one place. Calendar's model rather than Tree's, and the reason
365
+ * is that a board has four consumers of the same "where is it going" answer instead of two.
366
+ */
367
+ interface KanbanDraft<Col extends string = string, Lane extends string = string> {
368
+ id: string;
369
+ /** From `getItemLabel` — the ghost's text and the announcement's subject. */
370
+ label: string;
371
+ from: KanbanPosition<Col, Lane>;
372
+ /** The cell currently under the pointer, or walked to by keyboard. `null` while unresolved. */
373
+ target: KanbanCell<Col, Lane> | null;
374
+ /**
375
+ * The insertion index in `target`, already normalised to the `arrayMove` convention.
376
+ *
377
+ * **`null` means the hovered position is REFUSED** — no indicator is drawn and the cursor goes
378
+ * `not-allowed`. A wall, not an error: same contract as Tree's `position: null`.
379
+ */
380
+ index: number | null;
381
+ /** Viewport point for the ghost. `null` for a keyboard grab, which has no pointer. */
382
+ point: Point | null;
383
+ /** Which gesture is driving. The ghost anchors at the pointer, or at the card. */
384
+ kind: "pointer" | "keyboard";
385
+ }
386
+ interface UseKanbanResult<Item, Col extends string = string, Lane extends string = string> {
387
+ /**
388
+ * The ONE derived layout the view AND the keyboard model read — Tree's `visible`.
389
+ *
390
+ * Derived once, here, so the two can never disagree about what "the next card" means. A collapsed
391
+ * column keeps its cell: the *view* renders a rail instead of a list, but removing it from the
392
+ * projection would make `←`/`→` skip a slot that is still on screen.
393
+ */
394
+ layout: readonly KanbanLaneView<Item, Col, Lane>[];
395
+ /**
396
+ * One cell's size — `paging.total(cell)` when known, else the loaded count. Never a paging
397
+ * artifact.
398
+ *
399
+ * **The board does not display this anywhere; the caller does.** It is what a `column.trailing`
400
+ * count chip reads, and it is public precisely so that deleting the built-in chip cost no
401
+ * capability.
402
+ */
403
+ count: (cell: KanbanCell<Col, Lane>) => number;
404
+ /**
405
+ * The column's total across every lane. Equal to `count()` on an un-laned board — and the number a
406
+ * board-level header wants on a swimlane board, where one header names every lane's slice at once.
407
+ *
408
+ * Also the honest left-hand side of a caller-written capacity rule in `canMove`: a cap on "work in
409
+ * progress" is a property of the STAGE, not of one lane's slice of it.
410
+ */
411
+ columnCount: (column: Col) => number;
412
+ hasMore: (cell: KanbanCell<Col, Lane>) => boolean;
413
+ /** Fire and forget; the state lands in `pending` / `failed` below. */
414
+ loadMore: (cell: KanbanCell<Col, Lane>) => void;
415
+ /** Cell keys with a request in flight. */
416
+ pending: ReadonlySet<string>;
417
+ /** Cell keys whose last request rejected. `retryLoad` is the ONLY way out. */
418
+ failed: ReadonlySet<string>;
419
+ retryLoad: (cell: KanbanCell<Col, Lane>) => void;
420
+ /** Is paging configured at all? The view renders no loader row without it. */
421
+ paged: boolean;
422
+ /** Echoed back so the view's observer needs no second copy of the config. */
423
+ pagingRootMargin: number | undefined;
424
+ collapsedColumns: ReadonlySet<Col>;
425
+ toggleColumn: (id: Col) => void;
426
+ collapsedLanes: ReadonlySet<Lane>;
427
+ toggleLane: (id: Lane) => void;
428
+ canMove: (move: KanbanMove<Col, Lane>) => boolean;
429
+ move: (move: KanbanMove<Col, Lane>) => void;
430
+ reorderColumns: boolean;
431
+ canMoveColumn: (move: KanbanColumnMove<Col>) => boolean;
432
+ moveColumn: (move: KanbanColumnMove<Col>) => void;
433
+ draft: KanbanDraft<Col, Lane> | null;
434
+ setDraft: (draft: KanbanDraft<Col, Lane> | null) => void;
435
+ grabbed: string | null;
436
+ setGrabbed: (id: string | null) => void;
437
+ /** Stable key for a cell — the identity `pending` / `failed` and every internal map are keyed by. */
438
+ cellKey: (cell: KanbanCell<Col, Lane>) => string;
439
+ columns: readonly KanbanColumn<Col>[];
440
+ lanes: readonly KanbanLane<Lane>[] | null;
441
+ card: (item: Item) => React.ReactNode;
442
+ getItemId: (item: Item) => string;
443
+ getItemLabel: (item: Item) => string;
444
+ isDisabled: (item: Item) => boolean;
445
+ isColumnDisabled: (column: Col) => boolean;
446
+ hasLanes: boolean;
447
+ }
448
+ /**
449
+ * The stable identity of one `(column, lane)` list.
450
+ *
451
+ * **Length-prefixed, not separator-joined**, and that is not fussiness: `pending`, `failed`, the
452
+ * bucket map and every paging decision are indexed by this string, so two cells colliding on one key
453
+ * would silently share a fetch. A separator alone only works while it cannot appear in a
454
+ * caller-declared id, which is an assumption about the CALLER's data — `("a|b", null)` and
455
+ * `("a", "b")` join to the same thing. The length prefix pins where the column ends, and the
456
+ * presence of the second delimiter distinguishes a `null` lane from one genuinely named `""`, so
457
+ * the mapping is injective for every input.
458
+ */
459
+ declare function cellKey<Col extends string, Lane extends string>(cell: KanbanCell<Col, Lane>): string;
460
+ declare function useKanban<Item, const Col extends string = string, const Lane extends string = string>(options: UseKanbanOptions<Item, Col, Lane>): UseKanbanResult<Item, Col, Lane>;
461
+
462
+ interface KanbanBoardProps<Item, Col extends string = string, Lane extends string = string> {
463
+ /**
464
+ * The engine. **Required, and the board's only data channel** — no `items`/`columns`/`getItemId`
465
+ * of its own, because a second channel means props that are silently dead and duplicates that can
466
+ * disagree (`docs/api-policy.md` § one state owner).
467
+ */
468
+ board: UseKanbanResult<Item, Col, Lane>;
469
+ /** Density — and the column WIDTH with it. There is no `columnWidth`. @default "md" */
470
+ size?: KanbanSize;
471
+ /**
472
+ * The column's surface — **`<Card>`'s variant union, derived from it**, plus a `plain` member.
473
+ *
474
+ * `elevated` is a raised panel · `outlined` sits flush with the page · `subtle` is a sunken well the
475
+ * cards sit inside · `plain` draws nothing, for a board already inside a framed region where a box
476
+ * per column is a box inside a box. `outlined` is the default rather than Card's own `elevated`
477
+ * because a column is a named region holding objects, not a panel that lifts off the page. The
478
+ * CARDS default to the same member, so an untouched board is flat throughout — see `cardSurface`.
479
+ *
480
+ * It changes the surface and **nothing else** — same widths, same padding, same cards. The prop
481
+ * NAMES what it sets, so it may not also move the geometry (AGENTS §4), and a board keeps its grid
482
+ * when you toggle it.
483
+ *
484
+ * One exception, and it is the rail: a COLLAPSED column keeps the `outlined` well under every
485
+ * member, because a rail holds no cards and its box is the only thing saying a column is folded
486
+ * there.
487
+ * @default "outlined"
488
+ */
489
+ surface?: KanbanSurface;
490
+ /**
491
+ * The CARD's surface — the same `<Card>` union as {@link KanbanBoardProps.surface}, **minus
492
+ * `plain`**. A card is the drag object, the drop target and the tab stop, so it always draws a box;
493
+ * a `plain` one would be a `cursor-grab` on a shape nothing paints.
494
+ *
495
+ * `outlined` (default) is flat — the same fill as the column, separated by its hairline alone ·
496
+ * `elevated` lifts off its host (`shadow-sm` in light, one stop up in dark) · `subtle` recedes,
497
+ * which is the pairing for an `elevated` column.
498
+ *
499
+ * **The default deliberately MATCHES `surface`'s**, so an untouched board is flat throughout: two
500
+ * hairlines, no shadow anywhere. That is a taste call, and it is the one pairing where a card
501
+ * carries no fill step of its own — in light both boxes are `#FFF`, and in dark both are gray-950,
502
+ * so the card's 1px edge is the whole separation. For a card that reads as an OBJECT above its
503
+ * column, set `cardSurface="elevated"` (or sink the column to `subtle` and leave the cards flat).
504
+ *
505
+ * Like `surface`, it changes the surface and **nothing else** — same widths, same padding, same
506
+ * geometry. Two things deliberately do not follow it: the drag GHOST (a held object is elevated by
507
+ * definition, and it floats over other columns, so it stays opaque) and the dashed placeholder the
508
+ * carried card leaves behind (it has no fill to vary).
509
+ * @default "outlined"
510
+ */
511
+ cardSurface?: KanbanCardSurface;
512
+ /**
513
+ * Where a card's POINTER drag starts — the whole card, or a grip the card draws.
514
+ *
515
+ * Reach for `grip` when the card body is genuinely interactive. `card` bails out of a gesture that
516
+ * began on a `button`/`a`/`input`/`select`/`textarea`/`[contenteditable]`/`[data-kanban-nodrag]`,
517
+ * which covers the common cases, but that list is a guess about a node the board never wrote — a
518
+ * checkbox row, a slider, a label a reader wants to select all start a drag instead. `grip` answers
519
+ * it structurally: the card stops dragging, and the glyph is the only place a drag begins.
520
+ *
521
+ * It governs BOTH drag axes: with `columnReorder` on, `grip` also moves the column gesture onto a
522
+ * grip at the head of the column header and stops the header itself dragging. A board that dragged
523
+ * its cards from a glyph but its columns from anywhere would answer the same press two ways.
524
+ *
525
+ * Nothing about the KEYBOARD changes on either axis. The card keeps its tab stop and its
526
+ * space/enter grab, the header keeps its tab stop and its `Alt`+arrow move, because a grip is a
527
+ * pointer affordance — the reader's hand never left the card.
528
+ * @default "card"
529
+ */
530
+ handle?: KanbanHandle;
531
+ /**
532
+ * `auto` takes the board's height from its tallest column; `fill` takes it from the parent and
533
+ * moves the scrolling inside each column. ONE union, never a `fillHeight` boolean pair — `fill`
534
+ * needs a bounded parent (a flex/grid child with `min-h-0`) to have anything to fill.
535
+ * @default "auto"
536
+ */
537
+ height?: KanbanHeight;
538
+ /** The BOARD-level initial state: skeleton cards in every column. Per-cell paging has its own. */
539
+ loading?: boolean;
540
+ /** The board region's accessible name. A `<section>` with no name is not a landmark. */
541
+ "aria-label"?: string;
542
+ /** The board region's accessible name, by reference. */
543
+ "aria-labelledby"?: string;
544
+ /** Layout/spacing only, merged via `cn()`. */
545
+ className?: string;
546
+ }
547
+ declare function KanbanBoard<Item, Col extends string = string, Lane extends string = string>(props: KanbanBoardProps<Item, Col, Lane>): React.JSX.Element;
548
+
549
+ export { KanbanBoard, type KanbanBoardProps, type KanbanCardSurface, 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 KanbanSurface, type UseKanbanOptions, type UseKanbanResult, cellKey, useKanban };
@@ -0,0 +1,23 @@
1
+ "use client";export { KanbanBoard, cellKey, useKanban } from './chunk-FIGBJGH2.js';
2
+ import './chunk-5ZPUAGOP.js';
3
+ import './chunk-P6CON2R2.js';
4
+ import './chunk-MYQ3FD4Y.js';
5
+ import './chunk-7HV6EIGZ.js';
6
+ import './chunk-FZBZGA3P.js';
7
+ import './chunk-MFJP5FA7.js';
8
+ import './chunk-LCG34A5T.js';
9
+ import './chunk-C6OTOTKI.js';
10
+ import './chunk-6IUTVDNI.js';
11
+ import './chunk-PO2TYK3C.js';
12
+ import './chunk-FKVPAEJ6.js';
13
+ import './chunk-52IFGFTL.js';
14
+ import './chunk-O2LG3PNI.js';
15
+ import './chunk-EDSK6FEH.js';
16
+ import './chunk-4R7WDDCW.js';
17
+ import './chunk-AC6ZWKRN.js';
18
+ import './chunk-O4GRKO3I.js';
19
+ import './chunk-BLIZ3CL3.js';
20
+ import './chunk-QDYE5LVT.js';
21
+ import './chunk-ZSNJ6UA3.js';
22
+ //# sourceMappingURL=kanban-board.js.map
23
+ //# sourceMappingURL=kanban-board.js.map
@@ -0,0 +1,35 @@
1
+ import * as React from 'react';
2
+ import { C as CartesianChartBaseProps, b as ChartCurve } from './types-6kvYwtRH.js';
3
+ import './tooltip-surface-Dmvb8v5K.js';
4
+
5
+ interface LineChartProps<T extends object> extends CartesianChartBaseProps<T> {
6
+ /** @default "monotone" */
7
+ curve?: ChartCurve;
8
+ /**
9
+ * A dashed stroke (`"6 4"`, butt cap). The reference dots this instead (`"0.1 8"` + round caps),
10
+ * which works where ONE series is dashed against a solid one; per chart it turns every line into
11
+ * scatter — see `LINE_DASH` in `../chart/shared`.
12
+ *
13
+ * There is deliberately **no per-series `dashed`.** One series dashed and two solid is a
14
+ * distinction the legend cannot express, because the swatch is a filled dot. If a caller needs it,
15
+ * that is the signal to add a `variant` to `ChartSeries` — deliberately, later.
16
+ *
17
+ * @default false
18
+ */
19
+ dashed?: boolean;
20
+ /** Show a dot at every point, not only the hovered one. @default false */
21
+ dots?: boolean;
22
+ }
23
+ /**
24
+ * An unfilled trend over a category axis.
25
+ *
26
+ * Renders a real `<Line>` rather than an area with `fill="none"` — the reference shares one chart
27
+ * for both because its demos share one file; we have two components, and the honest primitive also
28
+ * means a line never carries an area's clip hack.
29
+ *
30
+ * Built on a hidden recharts engine — none of its vocabulary is public, there are no compound parts
31
+ * and there is no prop passthrough.
32
+ */
33
+ declare function LineChart<T extends object>({ curve, dashed, dots, ...rest }: LineChartProps<T>): React.JSX.Element;
34
+
35
+ export { LineChart, type LineChartProps };
@@ -0,0 +1,8 @@
1
+ "use client";export { LineChart } from './chunk-763VS2FY.js';
2
+ import './chunk-NA35YZRD.js';
3
+ import './chunk-75M43ELV.js';
4
+ import './chunk-AC6ZWKRN.js';
5
+ import './chunk-QDYE5LVT.js';
6
+ import './chunk-ZSNJ6UA3.js';
7
+ //# sourceMappingURL=line-chart.js.map
8
+ //# sourceMappingURL=line-chart.js.map
@@ -1,3 +1,4 @@
1
+ import { R as RuleTexture } from './rule-BqzaIwJy.js';
1
2
  import { DropdownMenuItem } from './dropdown-menu.js';
2
3
  import * as React from 'react';
3
4
 
@@ -69,22 +70,18 @@ interface NavLink {
69
70
  /** Start this section expanded, even when it holds no current row. @default false */
70
71
  defaultOpen?: boolean;
71
72
  }
72
- /**
73
- * How the break between two clusters is drawn. `line` is the solid hairline
74
- * (Untitled UI's only divider); `dot` is the same rule drawn as dots — a
75
- * quieter break for a nav that already uses `line` to mark its major seams,
76
- * so the two weights can read as two levels of separation.
77
- */
78
- type NavSeparatorVariant = "line" | "dot";
79
73
  /** A horizontal rule between clusters. */
80
74
  interface NavSeparator {
81
75
  separator: true;
82
76
  /**
83
- * The rule's texture — a solid hairline or a dotted one. Same footprint and
84
- * same token either way; the dots simply lay down less ink.
77
+ * How the break is drawn — the library-wide texture vocabulary, the same one
78
+ * `<Separator>` and a panel's `dividers` take. `line` is the solid hairline;
79
+ * `dot` and `dashed` are the same rule and the same token laying down less
80
+ * ink, so a nav can mark a major seam and a minor one without introducing a
81
+ * second colour. Texture, never colour. See `docs/rule-policy.md`.
85
82
  * @default "line"
86
83
  */
87
- variant?: NavSeparatorVariant;
84
+ texture?: RuleTexture;
88
85
  }
89
86
  /** A titled cluster of rows, rendered under an uppercase subheading. */
90
87
  interface NavGroup {
@@ -95,4 +92,4 @@ interface NavGroup {
95
92
  }
96
93
  type NavItem = NavSeparator | NavGroup | NavLink;
97
94
 
98
- export type { NavActionReveal as N, NavGroup as a, NavItem as b, NavLink as c, NavMatch as d, NavRowAction as e, NavSeparator as f, NavSeparatorVariant as g };
95
+ export type { NavActionReveal as N, NavGroup as a, NavItem as b, NavLink as c, NavMatch as d, NavRowAction as e, NavSeparator as f };