@danxbot/ui 3.5.1 → 3.5.2
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/dist/index.js +1657 -1649
- package/dist/index.js.map +1 -1
- package/dist/types/components/Board.d.ts +19 -1
- package/package.json +1 -1
|
@@ -85,19 +85,37 @@ export interface BoardColumnProps<T> {
|
|
|
85
85
|
* package-wide rule against a `show*`/`with*` switch. Defaults to a
|
|
86
86
|
* generic message built on `EmptyState` (REUSE: "An empty list, or a
|
|
87
87
|
* zero-state screen"), sized down for a column rather than a full page.
|
|
88
|
+
*
|
|
89
|
+
* HIDDEN, NOT REMOVED, while a drag session is over THIS column. An empty
|
|
90
|
+
* column's placeholder and the engine's own drop marker (drawn by
|
|
91
|
+
* `DragDropContainer` itself for a container with nothing else to hang the
|
|
92
|
+
* marker off — see `DragDrop.tsx`'s `restCount === 0` branch) would
|
|
93
|
+
* otherwise stack in the same box, and the placeholder's own sentence
|
|
94
|
+
* ("Drag a card here…") is exactly what the marker is now doing. The
|
|
95
|
+
* column's accessible name is untouched — `aria-label={column.label}` sits
|
|
96
|
+
* on the `role="list"` wrapper below, not on this content — so a
|
|
97
|
+
* screen-reader user still hears which column they are over even while the
|
|
98
|
+
* placeholder sentence is not rendered. See `BoardColumnBody`.
|
|
88
99
|
*/
|
|
89
100
|
emptyState?: ReactNode;
|
|
90
101
|
className?: string;
|
|
91
102
|
/**
|
|
92
103
|
* Applied to the droppable list, NOT to the column shell that `className`
|
|
93
104
|
* targets — this is where a column's own scrolling belongs
|
|
94
|
-
* (`max-h-… overflow-y-auto
|
|
105
|
+
* (`max-h-… overflow-y-auto`, to cap a column shorter than the space it
|
|
106
|
+
* would otherwise fill).
|
|
95
107
|
*
|
|
96
108
|
* It has to be the inner box: put the scroll on the shell and the header
|
|
97
109
|
* scrolls away with the cards, so a column whose cards have been scrolled
|
|
98
110
|
* loses the label and count that say what the column IS. The drag engine
|
|
99
111
|
* already resolves whichever scroller sits under the pointer, so a column
|
|
100
112
|
* that scrolls here auto-scrolls during a drag with nothing further wired.
|
|
113
|
+
*
|
|
114
|
+
* The box already stretches to fill whatever height its own column has
|
|
115
|
+
* (`flex-1`, below) and already scrolls its overflow (`overflow-y-auto`
|
|
116
|
+
* baked into `DragDropContainer`'s own recipe for a `y`-axis container) —
|
|
117
|
+
* this prop is for the rarer case of PINNING a column shorter than that,
|
|
118
|
+
* not for turning scrolling on in the first place.
|
|
101
119
|
*/
|
|
102
120
|
listClassName?: string;
|
|
103
121
|
/** The column's cards — a `BoardCard` per item, mapped by the consumer
|