laif-ds 0.2.47 → 0.2.49
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/_virtual/index2.js +2 -5
- package/dist/_virtual/index3.js +5 -2
- package/dist/agent-docs/components/AppForm.md +66 -1
- package/dist/agent-docs/components/AsyncSelect.md +94 -103
- package/dist/components/kanban.js +544 -0
- package/dist/components/ui/app-form.js +76 -44
- package/dist/components/ui/app-kanban.js +157 -0
- package/dist/components/ui/app-select.js +100 -87
- package/dist/components/ui/async-select.js +264 -278
- package/dist/index.d.ts +84 -29
- package/dist/index.js +77 -75
- package/dist/node_modules/@radix-ui/react-alert-dialog/dist/index.js +1 -1
- package/dist/node_modules/@radix-ui/react-alert-dialog/node_modules/@radix-ui/react-slot/dist/index.js +12 -0
- package/dist/node_modules/@radix-ui/react-collection/dist/index.js +1 -1
- package/dist/node_modules/@radix-ui/react-collection/node_modules/@radix-ui/react-slot/dist/index.js +50 -0
- package/dist/node_modules/@radix-ui/react-dialog/dist/index.js +1 -1
- package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-slot/dist/index.js +50 -0
- package/dist/node_modules/@radix-ui/react-menu/dist/index.js +1 -1
- package/dist/node_modules/@radix-ui/react-menu/node_modules/@radix-ui/react-slot/dist/index.js +50 -0
- package/dist/node_modules/@radix-ui/react-popover/dist/index.js +1 -1
- package/dist/node_modules/@radix-ui/react-popover/node_modules/@radix-ui/react-slot/dist/index.js +50 -0
- package/dist/node_modules/@radix-ui/react-primitive/dist/index.js +1 -1
- package/dist/node_modules/@radix-ui/react-primitive/node_modules/@radix-ui/react-slot/dist/index.js +50 -0
- package/dist/node_modules/@radix-ui/react-select/dist/index.js +1 -1
- package/dist/node_modules/@radix-ui/react-select/node_modules/@radix-ui/react-slot/dist/index.js +50 -0
- package/dist/node_modules/@radix-ui/react-slot/dist/index.js +47 -44
- package/dist/node_modules/@radix-ui/react-tooltip/dist/index.js +1 -1
- package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-slot/dist/index.js +12 -0
- package/dist/node_modules/eventemitter3/index.js +1 -1
- package/dist/node_modules/recharts/es6/util/Events.js +1 -1
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +536 -502
- package/dist/node_modules/use-sync-external-store/shim/index.js +1 -1
- package/dist/styles.css +1 -1
- package/dist/styles.v3.css +1 -1
- package/package.json +4 -4
|
@@ -0,0 +1,544 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as d, jsxs as D, Fragment as A } from "react/jsx-runtime";
|
|
3
|
+
import { useId as E, useRef as R, useCallback as b, useMemo as M, createContext as $, useState as y, useEffect as O, useContext as S } from "react";
|
|
4
|
+
import { createPortal as I } from "react-dom";
|
|
5
|
+
import { Button as P } from "./ui/button.js";
|
|
6
|
+
import { Popover as z, PopoverTrigger as L, PopoverContent as _ } from "./ui/popover.js";
|
|
7
|
+
import { TooltipProvider as j } from "./ui/tooltip.js";
|
|
8
|
+
import { Typo as K } from "./ui/typo.js";
|
|
9
|
+
import { cn as m } from "../lib/utils.js";
|
|
10
|
+
import F from "../node_modules/lucide-react/dist/esm/icons/pencil.js";
|
|
11
|
+
import H from "../node_modules/lucide-react/dist/esm/icons/ellipsis-vertical.js";
|
|
12
|
+
const T = $(void 0);
|
|
13
|
+
function J(e) {
|
|
14
|
+
const r = S(T);
|
|
15
|
+
if (!r)
|
|
16
|
+
throw new Error("useDndMonitor must be used within a DndMonitorProvider");
|
|
17
|
+
const { registerMonitor: i, unregisterMonitor: t } = r;
|
|
18
|
+
O(() => (i(e), () => {
|
|
19
|
+
t(e);
|
|
20
|
+
}), [e, i, t]);
|
|
21
|
+
}
|
|
22
|
+
function B() {
|
|
23
|
+
const e = S(T);
|
|
24
|
+
if (!e)
|
|
25
|
+
throw new Error("useDndEvents must be used within a DndMonitorProvider");
|
|
26
|
+
const { activeIdRef: r, draggableDescribedById: i, triggerEvent: t } = e, s = b(
|
|
27
|
+
(a) => {
|
|
28
|
+
r.current = a, t("onDragStart", a);
|
|
29
|
+
},
|
|
30
|
+
[t, r]
|
|
31
|
+
), c = b(
|
|
32
|
+
(a, o) => {
|
|
33
|
+
t("onDragMove", a, o);
|
|
34
|
+
},
|
|
35
|
+
[t]
|
|
36
|
+
), l = b(
|
|
37
|
+
(a, o) => {
|
|
38
|
+
const g = a || r.current;
|
|
39
|
+
t("onDragOver", g, o);
|
|
40
|
+
},
|
|
41
|
+
[t, r]
|
|
42
|
+
), p = b(
|
|
43
|
+
(a, o) => {
|
|
44
|
+
t("onDragEnd", a, o);
|
|
45
|
+
},
|
|
46
|
+
[t]
|
|
47
|
+
), u = b(
|
|
48
|
+
(a) => {
|
|
49
|
+
t("onDragCancel", a);
|
|
50
|
+
},
|
|
51
|
+
[t]
|
|
52
|
+
);
|
|
53
|
+
return {
|
|
54
|
+
draggableDescribedById: i,
|
|
55
|
+
onDragStart: s,
|
|
56
|
+
onDragMove: c,
|
|
57
|
+
onDragOver: l,
|
|
58
|
+
onDragEnd: p,
|
|
59
|
+
onDragCancel: u
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
const V = `
|
|
63
|
+
To pick up a draggable item, press the space bar.
|
|
64
|
+
While dragging, use the arrow keys to move the item.
|
|
65
|
+
Press space again to drop the item in its new position, or press escape to cancel.
|
|
66
|
+
`, Y = {
|
|
67
|
+
onDragStart(e) {
|
|
68
|
+
return `Picked up draggable item ${e}.`;
|
|
69
|
+
},
|
|
70
|
+
onDragOver(e, r) {
|
|
71
|
+
return r ? `Draggable item ${e} was moved over droppable area ${r}.` : `Draggable item ${e} is no longer over a droppable area.`;
|
|
72
|
+
},
|
|
73
|
+
onDragEnd(e, r) {
|
|
74
|
+
return r ? `Draggable item ${e} was dropped over droppable area ${r}` : `Draggable item ${e} was dropped.`;
|
|
75
|
+
},
|
|
76
|
+
onDragCancel(e) {
|
|
77
|
+
return `Dragging was cancelled. Draggable item ${e} was dropped.`;
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
function W({
|
|
81
|
+
announcement: e,
|
|
82
|
+
ariaLiveType: r = "assertive",
|
|
83
|
+
className: i,
|
|
84
|
+
id: t,
|
|
85
|
+
ref: s,
|
|
86
|
+
...c
|
|
87
|
+
}) {
|
|
88
|
+
return /* @__PURE__ */ d(
|
|
89
|
+
"div",
|
|
90
|
+
{
|
|
91
|
+
"aria-live": r,
|
|
92
|
+
"aria-atomic": !0,
|
|
93
|
+
className: m(
|
|
94
|
+
"clip-[rect(0_0_0_0)] clip-path-[inset(100%)] fixed top-0 left-0 -m-px h-px w-px overflow-hidden border-0 p-0 whitespace-nowrap",
|
|
95
|
+
i
|
|
96
|
+
),
|
|
97
|
+
id: t,
|
|
98
|
+
ref: s,
|
|
99
|
+
role: "status",
|
|
100
|
+
...c,
|
|
101
|
+
children: e
|
|
102
|
+
}
|
|
103
|
+
);
|
|
104
|
+
}
|
|
105
|
+
function q({
|
|
106
|
+
id: e,
|
|
107
|
+
value: r,
|
|
108
|
+
className: i,
|
|
109
|
+
ref: t,
|
|
110
|
+
...s
|
|
111
|
+
}) {
|
|
112
|
+
return /* @__PURE__ */ d("div", { id: e, className: m("hidden", i), ref: t, ...s, children: r });
|
|
113
|
+
}
|
|
114
|
+
function G() {
|
|
115
|
+
const [e, r] = y("");
|
|
116
|
+
return { announce: b((t) => {
|
|
117
|
+
t != null && r(t);
|
|
118
|
+
}, []), announcement: e };
|
|
119
|
+
}
|
|
120
|
+
const Q = ({
|
|
121
|
+
announcements: e = Y,
|
|
122
|
+
container: r,
|
|
123
|
+
hiddenTextDescribedById: i,
|
|
124
|
+
screenReaderInstructions: t = V
|
|
125
|
+
}) => {
|
|
126
|
+
const { announce: s, announcement: c } = G(), l = E(), [p, u] = y(!1);
|
|
127
|
+
if (O(() => {
|
|
128
|
+
u(!0);
|
|
129
|
+
}, []), J(
|
|
130
|
+
M(
|
|
131
|
+
() => ({
|
|
132
|
+
onDragStart(o) {
|
|
133
|
+
s(e.onDragStart(o));
|
|
134
|
+
},
|
|
135
|
+
onDragMove(o, g) {
|
|
136
|
+
e.onDragMove && s(e.onDragMove(o, g));
|
|
137
|
+
},
|
|
138
|
+
onDragOver(o, g) {
|
|
139
|
+
s(e.onDragOver(o, g));
|
|
140
|
+
},
|
|
141
|
+
onDragEnd(o, g) {
|
|
142
|
+
s(e.onDragEnd(o, g));
|
|
143
|
+
},
|
|
144
|
+
onDragCancel(o) {
|
|
145
|
+
s(e.onDragCancel(o));
|
|
146
|
+
}
|
|
147
|
+
}),
|
|
148
|
+
[s, e]
|
|
149
|
+
)
|
|
150
|
+
), !p)
|
|
151
|
+
return null;
|
|
152
|
+
const a = /* @__PURE__ */ D(A, { children: [
|
|
153
|
+
/* @__PURE__ */ d(
|
|
154
|
+
q,
|
|
155
|
+
{
|
|
156
|
+
id: i,
|
|
157
|
+
value: t
|
|
158
|
+
}
|
|
159
|
+
),
|
|
160
|
+
/* @__PURE__ */ d(W, { id: l, announcement: c })
|
|
161
|
+
] });
|
|
162
|
+
return r ? I(a, r) : a;
|
|
163
|
+
}, ce = ({
|
|
164
|
+
announcements: e,
|
|
165
|
+
screenReaderInstructions: r,
|
|
166
|
+
container: i,
|
|
167
|
+
children: t
|
|
168
|
+
}) => {
|
|
169
|
+
const s = E(), c = R([]), l = R(""), p = b(
|
|
170
|
+
(g) => {
|
|
171
|
+
c.current.push(g);
|
|
172
|
+
},
|
|
173
|
+
[]
|
|
174
|
+
), u = b(
|
|
175
|
+
(g) => {
|
|
176
|
+
c.current = c.current.filter(
|
|
177
|
+
(v) => v !== g
|
|
178
|
+
);
|
|
179
|
+
},
|
|
180
|
+
[]
|
|
181
|
+
), a = b(
|
|
182
|
+
(g, v, w) => {
|
|
183
|
+
for (const N of c.current) {
|
|
184
|
+
const C = N[g];
|
|
185
|
+
C && C(v, w);
|
|
186
|
+
}
|
|
187
|
+
},
|
|
188
|
+
[]
|
|
189
|
+
), o = M(
|
|
190
|
+
() => ({
|
|
191
|
+
activeIdRef: l,
|
|
192
|
+
draggableDescribedById: s,
|
|
193
|
+
registerMonitor: p,
|
|
194
|
+
unregisterMonitor: u,
|
|
195
|
+
triggerEvent: a
|
|
196
|
+
}),
|
|
197
|
+
[
|
|
198
|
+
l,
|
|
199
|
+
s,
|
|
200
|
+
p,
|
|
201
|
+
u,
|
|
202
|
+
a
|
|
203
|
+
]
|
|
204
|
+
);
|
|
205
|
+
return /* @__PURE__ */ d(j, { children: /* @__PURE__ */ D(T.Provider, { value: o, children: [
|
|
206
|
+
t,
|
|
207
|
+
/* @__PURE__ */ d(
|
|
208
|
+
Q,
|
|
209
|
+
{
|
|
210
|
+
announcements: e,
|
|
211
|
+
screenReaderInstructions: r,
|
|
212
|
+
container: i,
|
|
213
|
+
hiddenTextDescribedById: s
|
|
214
|
+
}
|
|
215
|
+
)
|
|
216
|
+
] }) });
|
|
217
|
+
}, x = {
|
|
218
|
+
CARD: "kanban-board-card"
|
|
219
|
+
};
|
|
220
|
+
function ge({
|
|
221
|
+
className: e,
|
|
222
|
+
ref: r,
|
|
223
|
+
...i
|
|
224
|
+
}) {
|
|
225
|
+
return /* @__PURE__ */ d(
|
|
226
|
+
"div",
|
|
227
|
+
{
|
|
228
|
+
className: m(
|
|
229
|
+
"flex h-full flex-grow items-start gap-x-2 overflow-x-auto py-1 select-none",
|
|
230
|
+
e
|
|
231
|
+
),
|
|
232
|
+
draggable: !1,
|
|
233
|
+
onDragStart: (t) => {
|
|
234
|
+
t.preventDefault(), t.stopPropagation();
|
|
235
|
+
},
|
|
236
|
+
ref: r,
|
|
237
|
+
...i
|
|
238
|
+
}
|
|
239
|
+
);
|
|
240
|
+
}
|
|
241
|
+
const U = "w-80 flex-shrink-0 rounded-lg border flex flex-col border-d-border bg-d-sidebar py-2 max-h-full";
|
|
242
|
+
function pe({
|
|
243
|
+
className: e,
|
|
244
|
+
columnId: r,
|
|
245
|
+
onDropOverColumn: i,
|
|
246
|
+
ref: t,
|
|
247
|
+
...s
|
|
248
|
+
}) {
|
|
249
|
+
const [c, l] = y(!1), { onDragEnd: p, onDragOver: u } = B();
|
|
250
|
+
return /* @__PURE__ */ d(
|
|
251
|
+
"section",
|
|
252
|
+
{
|
|
253
|
+
"aria-labelledby": `column-${r}-title`,
|
|
254
|
+
className: m(
|
|
255
|
+
U,
|
|
256
|
+
c && "border-d-primary",
|
|
257
|
+
e
|
|
258
|
+
),
|
|
259
|
+
draggable: !1,
|
|
260
|
+
onDragStart: (a) => {
|
|
261
|
+
a.preventDefault(), a.stopPropagation();
|
|
262
|
+
},
|
|
263
|
+
onDragLeave: () => {
|
|
264
|
+
l(!1);
|
|
265
|
+
},
|
|
266
|
+
onDragOver: (a) => {
|
|
267
|
+
a.dataTransfer.types.includes(x.CARD) && (a.preventDefault(), l(!0), u("", r));
|
|
268
|
+
},
|
|
269
|
+
onDrop: (a) => {
|
|
270
|
+
if (a.dataTransfer.types.includes(x.CARD)) {
|
|
271
|
+
a.preventDefault(), l(!1);
|
|
272
|
+
const o = a.dataTransfer.getData(x.CARD);
|
|
273
|
+
i?.(o), p("", r);
|
|
274
|
+
}
|
|
275
|
+
},
|
|
276
|
+
ref: t,
|
|
277
|
+
...s
|
|
278
|
+
}
|
|
279
|
+
);
|
|
280
|
+
}
|
|
281
|
+
function ue({
|
|
282
|
+
className: e,
|
|
283
|
+
ref: r,
|
|
284
|
+
...i
|
|
285
|
+
}) {
|
|
286
|
+
return /* @__PURE__ */ d(
|
|
287
|
+
"div",
|
|
288
|
+
{
|
|
289
|
+
className: m("flex items-center justify-between px-2 py-1", e),
|
|
290
|
+
ref: r,
|
|
291
|
+
...i
|
|
292
|
+
}
|
|
293
|
+
);
|
|
294
|
+
}
|
|
295
|
+
function fe({
|
|
296
|
+
className: e,
|
|
297
|
+
ref: r,
|
|
298
|
+
...i
|
|
299
|
+
}) {
|
|
300
|
+
return /* @__PURE__ */ d(
|
|
301
|
+
"ul",
|
|
302
|
+
{
|
|
303
|
+
className: m("min-h-0.5 flex-grow overflow-y-auto", e),
|
|
304
|
+
ref: r,
|
|
305
|
+
...i
|
|
306
|
+
}
|
|
307
|
+
);
|
|
308
|
+
}
|
|
309
|
+
const X = "-mb-[2px] border-b-2 border-t-2 border-b-transparent border-t-transparent px-2 py-1 last:mb-0";
|
|
310
|
+
function me({
|
|
311
|
+
cardId: e,
|
|
312
|
+
className: r,
|
|
313
|
+
onDropOverListItem: i,
|
|
314
|
+
ref: t,
|
|
315
|
+
...s
|
|
316
|
+
}) {
|
|
317
|
+
const [c, l] = y("none"), { onDragOver: p, onDragEnd: u } = B();
|
|
318
|
+
return /* @__PURE__ */ d(
|
|
319
|
+
"li",
|
|
320
|
+
{
|
|
321
|
+
className: m(
|
|
322
|
+
X,
|
|
323
|
+
c === "top" && "border-t-d-primary",
|
|
324
|
+
c === "bottom" && "border-b-d-primary",
|
|
325
|
+
r
|
|
326
|
+
),
|
|
327
|
+
onDragLeave: () => {
|
|
328
|
+
l("none");
|
|
329
|
+
},
|
|
330
|
+
onDragOver: (a) => {
|
|
331
|
+
if (a.dataTransfer.types.includes(x.CARD)) {
|
|
332
|
+
a.preventDefault(), a.stopPropagation();
|
|
333
|
+
const o = a.currentTarget.getBoundingClientRect(), g = (o.top + o.bottom) / 2;
|
|
334
|
+
l(a.clientY <= g ? "top" : "bottom"), p("", e);
|
|
335
|
+
}
|
|
336
|
+
},
|
|
337
|
+
onDrop: (a) => {
|
|
338
|
+
a.stopPropagation();
|
|
339
|
+
const o = a.dataTransfer.getData(x.CARD);
|
|
340
|
+
i?.(o, c), u(JSON.parse(o).id, e), l("none");
|
|
341
|
+
},
|
|
342
|
+
ref: t,
|
|
343
|
+
...s
|
|
344
|
+
}
|
|
345
|
+
);
|
|
346
|
+
}
|
|
347
|
+
const Z = "p-3 text-start";
|
|
348
|
+
function be({
|
|
349
|
+
className: e,
|
|
350
|
+
data: r,
|
|
351
|
+
isActive: i = !1,
|
|
352
|
+
onEdit: t,
|
|
353
|
+
actions: s,
|
|
354
|
+
meta: c,
|
|
355
|
+
backgroundColor: l,
|
|
356
|
+
ref: p,
|
|
357
|
+
children: u,
|
|
358
|
+
...a
|
|
359
|
+
}) {
|
|
360
|
+
const [o, g] = y(!1), [v, w] = y(!1), { draggableDescribedById: N, onDragStart: C } = B(), k = t || s && s.length > 0;
|
|
361
|
+
return /* @__PURE__ */ D(
|
|
362
|
+
"div",
|
|
363
|
+
{
|
|
364
|
+
role: "button",
|
|
365
|
+
tabIndex: 0,
|
|
366
|
+
"aria-describedby": N,
|
|
367
|
+
"aria-roledescription": "draggable",
|
|
368
|
+
draggable: !0,
|
|
369
|
+
onDragStart: (n) => {
|
|
370
|
+
n.stopPropagation(), g(!0), n.dataTransfer.effectAllowed = "move", n.dataTransfer.setData(
|
|
371
|
+
x.CARD,
|
|
372
|
+
JSON.stringify(r)
|
|
373
|
+
);
|
|
374
|
+
const f = n.currentTarget.cloneNode(!0), h = n.currentTarget.getBoundingClientRect();
|
|
375
|
+
f.style.position = "absolute", f.style.top = "-9999px", f.style.width = `${h.width}px`, f.style.opacity = "0.8", document.body.appendChild(f), n.dataTransfer.setDragImage(
|
|
376
|
+
f,
|
|
377
|
+
h.width / 2,
|
|
378
|
+
h.height / 2
|
|
379
|
+
), setTimeout(() => document.body.removeChild(f), 0), n.currentTarget.blur(), C(r.id);
|
|
380
|
+
},
|
|
381
|
+
onDragEnd: () => {
|
|
382
|
+
g(!1);
|
|
383
|
+
},
|
|
384
|
+
onClick: (n) => {
|
|
385
|
+
o && (n.preventDefault(), n.stopPropagation());
|
|
386
|
+
},
|
|
387
|
+
onKeyDown: (n) => {
|
|
388
|
+
(n.key === "Enter" || n.key === " ") && n.preventDefault();
|
|
389
|
+
},
|
|
390
|
+
className: m(
|
|
391
|
+
"border-d-border text-d-card-foreground rounded-lg border shadow-sm",
|
|
392
|
+
!l && "bg-d-card",
|
|
393
|
+
Z,
|
|
394
|
+
"focus-visible:ring-d-ring inline-flex w-full cursor-grab touch-manipulation flex-col gap-2 focus-visible:ring-1 focus-visible:outline-none",
|
|
395
|
+
o ? "cursor-grabbing active:cursor-grabbing" : "group/card relative",
|
|
396
|
+
i && "rotate-1 transform shadow-lg",
|
|
397
|
+
e
|
|
398
|
+
),
|
|
399
|
+
style: {
|
|
400
|
+
backgroundColor: l ? `${l}18` : void 0,
|
|
401
|
+
borderColor: l ? `${l}35` : void 0,
|
|
402
|
+
...a.style
|
|
403
|
+
},
|
|
404
|
+
ref: p,
|
|
405
|
+
...a,
|
|
406
|
+
children: [
|
|
407
|
+
u,
|
|
408
|
+
c && c.length > 0 && /* @__PURE__ */ d("div", { className: "mt-1.5 flex flex-wrap gap-1.5", children: c.map((n, f) => /* @__PURE__ */ D(
|
|
409
|
+
"div",
|
|
410
|
+
{
|
|
411
|
+
className: "inline-flex items-center gap-1 rounded-full px-2 py-0.5 text-[11px]",
|
|
412
|
+
style: {
|
|
413
|
+
backgroundColor: l ? `${l}25` : void 0,
|
|
414
|
+
color: l || void 0
|
|
415
|
+
},
|
|
416
|
+
children: [
|
|
417
|
+
/* @__PURE__ */ d("span", { className: "truncate font-medium", children: n.name }),
|
|
418
|
+
n.value && /* @__PURE__ */ D(A, { children: [
|
|
419
|
+
/* @__PURE__ */ d("span", { className: "opacity-60", children: "•" }),
|
|
420
|
+
/* @__PURE__ */ d("span", { className: "truncate opacity-80", children: n.value })
|
|
421
|
+
] })
|
|
422
|
+
]
|
|
423
|
+
},
|
|
424
|
+
f
|
|
425
|
+
)) }),
|
|
426
|
+
k && !o && /* @__PURE__ */ D(
|
|
427
|
+
"div",
|
|
428
|
+
{
|
|
429
|
+
className: m(
|
|
430
|
+
"bg-d-card border-d-border absolute top-2 right-2 items-center gap-1 rounded-md border p-0.5 shadow-sm",
|
|
431
|
+
v ? "flex" : "hidden group-focus-within/card:flex group-hover/card:flex"
|
|
432
|
+
),
|
|
433
|
+
children: [
|
|
434
|
+
t && /* @__PURE__ */ d(
|
|
435
|
+
P,
|
|
436
|
+
{
|
|
437
|
+
variant: "ghost",
|
|
438
|
+
size: "icon",
|
|
439
|
+
className: "hover:bg-d-accent size-6",
|
|
440
|
+
onClick: (n) => {
|
|
441
|
+
n.stopPropagation(), n.preventDefault(), o || t();
|
|
442
|
+
},
|
|
443
|
+
children: /* @__PURE__ */ d(F, { className: "size-3.5" })
|
|
444
|
+
}
|
|
445
|
+
),
|
|
446
|
+
s && s.length > 0 && /* @__PURE__ */ D(z, { open: v, onOpenChange: w, children: [
|
|
447
|
+
/* @__PURE__ */ d(L, { asChild: !0, children: /* @__PURE__ */ d(
|
|
448
|
+
P,
|
|
449
|
+
{
|
|
450
|
+
variant: "ghost",
|
|
451
|
+
size: "icon",
|
|
452
|
+
className: "hover:bg-d-accent size-6",
|
|
453
|
+
onClick: (n) => {
|
|
454
|
+
n.stopPropagation();
|
|
455
|
+
},
|
|
456
|
+
children: /* @__PURE__ */ d(H, { className: "size-3.5" })
|
|
457
|
+
}
|
|
458
|
+
) }),
|
|
459
|
+
/* @__PURE__ */ d(
|
|
460
|
+
_,
|
|
461
|
+
{
|
|
462
|
+
className: "w-48 p-1",
|
|
463
|
+
align: "end",
|
|
464
|
+
side: "bottom",
|
|
465
|
+
sideOffset: 8,
|
|
466
|
+
onClick: (n) => n.stopPropagation(),
|
|
467
|
+
children: /* @__PURE__ */ d("div", { className: "flex flex-col gap-0.5", children: s.map((n, f) => /* @__PURE__ */ D(
|
|
468
|
+
P,
|
|
469
|
+
{
|
|
470
|
+
variant: n.variant === "destructive" ? "ghost-destructive" : "ghost",
|
|
471
|
+
size: "sm",
|
|
472
|
+
className: "w-full justify-start gap-2",
|
|
473
|
+
onClick: (h) => {
|
|
474
|
+
h.stopPropagation(), h.preventDefault(), n.onClick(), w(!1);
|
|
475
|
+
},
|
|
476
|
+
children: [
|
|
477
|
+
n.icon && /* @__PURE__ */ d("span", { className: "size-4", children: n.icon }),
|
|
478
|
+
n.label
|
|
479
|
+
]
|
|
480
|
+
},
|
|
481
|
+
f
|
|
482
|
+
)) })
|
|
483
|
+
}
|
|
484
|
+
)
|
|
485
|
+
] })
|
|
486
|
+
]
|
|
487
|
+
}
|
|
488
|
+
)
|
|
489
|
+
]
|
|
490
|
+
}
|
|
491
|
+
);
|
|
492
|
+
}
|
|
493
|
+
function De({
|
|
494
|
+
className: e,
|
|
495
|
+
...r
|
|
496
|
+
}) {
|
|
497
|
+
return /* @__PURE__ */ d(
|
|
498
|
+
K,
|
|
499
|
+
{
|
|
500
|
+
variant: "small",
|
|
501
|
+
as: "h3",
|
|
502
|
+
className: m("text-sm font-semibold", e),
|
|
503
|
+
...r
|
|
504
|
+
}
|
|
505
|
+
);
|
|
506
|
+
}
|
|
507
|
+
function ve({
|
|
508
|
+
className: e,
|
|
509
|
+
...r
|
|
510
|
+
}) {
|
|
511
|
+
return /* @__PURE__ */ d(
|
|
512
|
+
K,
|
|
513
|
+
{
|
|
514
|
+
variant: "caption",
|
|
515
|
+
as: "p",
|
|
516
|
+
className: m(
|
|
517
|
+
"text-d-muted-foreground leading-relaxed whitespace-pre-wrap",
|
|
518
|
+
e
|
|
519
|
+
),
|
|
520
|
+
...r
|
|
521
|
+
}
|
|
522
|
+
);
|
|
523
|
+
}
|
|
524
|
+
export {
|
|
525
|
+
ge as KanbanBoard,
|
|
526
|
+
Q as KanbanBoardAccessibility,
|
|
527
|
+
be as KanbanBoardCard,
|
|
528
|
+
ve as KanbanBoardCardDescription,
|
|
529
|
+
De as KanbanBoardCardTitle,
|
|
530
|
+
pe as KanbanBoardColumn,
|
|
531
|
+
ue as KanbanBoardColumnHeader,
|
|
532
|
+
fe as KanbanBoardColumnList,
|
|
533
|
+
me as KanbanBoardColumnListItem,
|
|
534
|
+
T as KanbanBoardContext,
|
|
535
|
+
q as KanbanBoardHiddenText,
|
|
536
|
+
W as KanbanBoardLiveRegion,
|
|
537
|
+
ce as KanbanBoardProvider,
|
|
538
|
+
Y as defaultAnnouncements,
|
|
539
|
+
V as defaultScreenReaderInstructions,
|
|
540
|
+
U as kanbanBoardColumnClassNames,
|
|
541
|
+
X as kanbanBoardColumnListItemClassNames,
|
|
542
|
+
G as useAnnouncement,
|
|
543
|
+
B as useDndEvents
|
|
544
|
+
};
|