@devalok/shilp-sutra-karm 0.20.2 → 0.21.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.
- package/dist/_chunks/chat-panel.js +51 -51
- package/dist/_chunks/kanban-board.js +40 -39
- package/dist/_chunks/markdown-components.js +15 -15
- package/dist/_chunks/project-card.js +25 -25
- package/dist/_chunks/render-adjustment-type.js +190 -190
- package/dist/_chunks/sidebar-scratchpad.js +225 -224
- package/dist/_chunks/task-detail-panel.js +362 -350
- package/dist/_chunks/vendor-dnd.js +3353 -0
- package/dist/_chunks/vendor-markdown.js +4939 -0
- package/dist/_chunks/vendor-utils.js +3264 -0
- package/dist/dashboard/index.js +80 -80
- package/dist/index.js +8 -8
- package/dist/tasks/index.js +205 -205
- package/dist/tasks/task-detail-panel.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/_chunks/vendor.js +0 -11522
|
@@ -8,23 +8,23 @@ import { cn as x } from "@devalok/shilp-sutra/ui/lib/utils";
|
|
|
8
8
|
import { springs as v } from "@devalok/shilp-sutra/ui/lib/motion";
|
|
9
9
|
import { u as Z } from "./use-composed-ref.js";
|
|
10
10
|
import { m as A } from "./markdown-components.js";
|
|
11
|
-
import { M as L } from "./vendor.js";
|
|
12
|
-
import { IconRobot as C, IconAlertCircle as $, IconUser as O, IconSquare as S, IconSend as ee, IconMessagePlus as E, IconMessage as se, IconArchive as ae, IconTrash as re, IconChevronDown as te, IconHistory as ie, IconX as
|
|
11
|
+
import { M as L } from "./vendor-markdown.js";
|
|
12
|
+
import { IconRobot as C, IconAlertCircle as $, IconUser as O, IconSquare as S, IconSend as ee, IconMessagePlus as E, IconMessage as se, IconArchive as ae, IconTrash as re, IconChevronDown as te, IconHistory as ie, IconX as de } from "@tabler/icons-react";
|
|
13
13
|
import { Button as D } from "@devalok/shilp-sutra/ui/button";
|
|
14
|
-
import { formatRelativeTime as
|
|
14
|
+
import { formatRelativeTime as le } from "@devalok/shilp-sutra/ui/lib/date-utils";
|
|
15
15
|
import { DropdownMenu as ce, DropdownMenuTrigger as ne, DropdownMenuContent as oe, DropdownMenuItem as me } from "@devalok/shilp-sutra/ui";
|
|
16
16
|
const H = w.forwardRef(
|
|
17
|
-
function({ text:
|
|
17
|
+
function({ text: d, isComplete: l = !1, className: i, ...f }, c) {
|
|
18
18
|
return /* @__PURE__ */ s("div", { ref: c, className: x(i), ...f, "aria-live": "off", children: [
|
|
19
|
-
/* @__PURE__ */ e(L, { components: A, children:
|
|
20
|
-
!
|
|
19
|
+
/* @__PURE__ */ e(L, { components: A, children: d }),
|
|
20
|
+
!l && /* @__PURE__ */ e("span", { className: "inline-block h-4 w-2 animate-pulse bg-surface-fg-muted ml-ds-01" }),
|
|
21
21
|
/* @__PURE__ */ e(
|
|
22
22
|
"span",
|
|
23
23
|
{
|
|
24
24
|
className: "sr-only",
|
|
25
25
|
"aria-live": "polite",
|
|
26
26
|
"aria-atomic": "true",
|
|
27
|
-
children:
|
|
27
|
+
children: l ? d : ""
|
|
28
28
|
}
|
|
29
29
|
)
|
|
30
30
|
] });
|
|
@@ -33,8 +33,8 @@ const H = w.forwardRef(
|
|
|
33
33
|
H.displayName = "StreamingText";
|
|
34
34
|
const K = w.forwardRef(
|
|
35
35
|
function({
|
|
36
|
-
messages:
|
|
37
|
-
isStreaming:
|
|
36
|
+
messages: d,
|
|
37
|
+
isStreaming: l = !1,
|
|
38
38
|
streamingText: i = "",
|
|
39
39
|
isLoadingMessages: f = !1,
|
|
40
40
|
emptyTitle: c = "Karm AI",
|
|
@@ -46,15 +46,15 @@ const K = w.forwardRef(
|
|
|
46
46
|
return Y(() => {
|
|
47
47
|
const a = h.current;
|
|
48
48
|
a && (a.scrollTop = a.scrollHeight);
|
|
49
|
-
}, [
|
|
49
|
+
}, [d, i]), f ? /* @__PURE__ */ e("div", { ref: n, className: x("flex flex-1 items-center justify-center", o), ...m, children: /* @__PURE__ */ s("div", { className: "flex flex-col items-center gap-ds-03", children: [
|
|
50
50
|
/* @__PURE__ */ e("div", { className: "h-ds-xs w-ds-xs animate-spin rounded-ds-full border-2 border-surface-border border-t-transparent" }),
|
|
51
51
|
/* @__PURE__ */ e("p", { className: "text-ds-sm text-surface-fg-subtle", children: "Loading messages..." })
|
|
52
|
-
] }) }) :
|
|
53
|
-
/* @__PURE__ */ e("div", { className: "flex h-ds-lg w-ds-lg items-center justify-center rounded-ds-full bg-surface-
|
|
52
|
+
] }) }) : d.length === 0 && !l ? /* @__PURE__ */ e("div", { ref: n, className: x("flex flex-1 items-center justify-center p-ds-06", o), ...m, children: /* @__PURE__ */ s("div", { className: "flex flex-col items-center gap-ds-04 text-center", children: [
|
|
53
|
+
/* @__PURE__ */ e("div", { className: "flex h-ds-lg w-ds-lg items-center justify-center rounded-ds-full bg-surface-raised-hover", children: /* @__PURE__ */ e(C, { className: "h-ico-lg w-ico-lg text-surface-fg-muted" }) }),
|
|
54
54
|
/* @__PURE__ */ e("h3", { className: "text-ds-base text-surface-fg", children: c }),
|
|
55
55
|
/* @__PURE__ */ e("p", { className: "text-ds-sm max-w-[280px] text-surface-fg-subtle", children: u })
|
|
56
56
|
] }) }) : /* @__PURE__ */ e("div", { ref: t, className: x("no-scrollbar flex-1 overflow-y-auto p-ds-05", o), ...m, children: /* @__PURE__ */ e("div", { className: "flex flex-col gap-ds-05", role: "log", "aria-label": "Chat messages", children: /* @__PURE__ */ s(W, { initial: !1, children: [
|
|
57
|
-
|
|
57
|
+
d.map((a) => a.role === "SYSTEM" ? /* @__PURE__ */ e(
|
|
58
58
|
g.div,
|
|
59
59
|
{
|
|
60
60
|
initial: { opacity: 0, y: 10 },
|
|
@@ -76,7 +76,7 @@ const K = w.forwardRef(
|
|
|
76
76
|
className: "flex justify-end",
|
|
77
77
|
children: /* @__PURE__ */ s("div", { className: "flex max-w-[85%] items-start gap-ds-03", children: [
|
|
78
78
|
/* @__PURE__ */ e("div", { className: "rounded-ds-2xl rounded-br-ds-sm bg-accent-9 px-ds-04 py-ds-03 text-accent-fg", children: /* @__PURE__ */ e("p", { className: "text-ds-md whitespace-pre-wrap", children: a.content }) }),
|
|
79
|
-
/* @__PURE__ */ e("div", { className: "flex h-ds-xs-plus w-ds-xs-plus shrink-0 items-center justify-center rounded-ds-full bg-surface-
|
|
79
|
+
/* @__PURE__ */ e("div", { className: "flex h-ds-xs-plus w-ds-xs-plus shrink-0 items-center justify-center rounded-ds-full bg-surface-raised-hover", children: /* @__PURE__ */ e(O, { className: "h-ico-sm w-ico-sm text-surface-fg-muted" }) })
|
|
80
80
|
] })
|
|
81
81
|
},
|
|
82
82
|
a.id
|
|
@@ -88,13 +88,13 @@ const K = w.forwardRef(
|
|
|
88
88
|
transition: v.snappy,
|
|
89
89
|
className: "flex justify-start",
|
|
90
90
|
children: /* @__PURE__ */ s("div", { className: "flex max-w-[85%] items-start gap-ds-03", children: [
|
|
91
|
-
/* @__PURE__ */ e("div", { className: "flex h-ds-xs-plus w-ds-xs-plus shrink-0 items-center justify-center rounded-ds-full bg-surface-
|
|
92
|
-
/* @__PURE__ */ e("div", { className: "rounded-ds-2xl rounded-bl-ds-sm bg-surface-
|
|
91
|
+
/* @__PURE__ */ e("div", { className: "flex h-ds-xs-plus w-ds-xs-plus shrink-0 items-center justify-center rounded-ds-full bg-surface-raised-hover", children: /* @__PURE__ */ e(C, { className: "h-ico-sm w-ico-sm text-surface-fg-muted" }) }),
|
|
92
|
+
/* @__PURE__ */ e("div", { className: "rounded-ds-2xl rounded-bl-ds-sm bg-surface-raised-hover px-ds-04 py-ds-03", children: /* @__PURE__ */ e("div", { className: "text-ds-md text-surface-fg", children: /* @__PURE__ */ e(L, { components: A, children: a.content }) }) })
|
|
93
93
|
] })
|
|
94
94
|
},
|
|
95
95
|
a.id
|
|
96
96
|
)),
|
|
97
|
-
|
|
97
|
+
l && i && /* @__PURE__ */ e(
|
|
98
98
|
g.div,
|
|
99
99
|
{
|
|
100
100
|
initial: { opacity: 0, y: 10 },
|
|
@@ -102,13 +102,13 @@ const K = w.forwardRef(
|
|
|
102
102
|
transition: v.snappy,
|
|
103
103
|
className: "flex justify-start",
|
|
104
104
|
children: /* @__PURE__ */ s("div", { className: "flex max-w-[85%] items-start gap-ds-03", children: [
|
|
105
|
-
/* @__PURE__ */ e("div", { className: "flex h-ds-xs-plus w-ds-xs-plus shrink-0 items-center justify-center rounded-ds-full bg-surface-
|
|
106
|
-
/* @__PURE__ */ e("div", { className: "rounded-ds-2xl rounded-bl-ds-sm bg-surface-
|
|
105
|
+
/* @__PURE__ */ e("div", { className: "flex h-ds-xs-plus w-ds-xs-plus shrink-0 items-center justify-center rounded-ds-full bg-surface-raised-hover", children: /* @__PURE__ */ e(C, { className: "h-ico-sm w-ico-sm text-surface-fg-muted" }) }),
|
|
106
|
+
/* @__PURE__ */ e("div", { className: "rounded-ds-2xl rounded-bl-ds-sm bg-surface-raised-hover px-ds-04 py-ds-03", children: /* @__PURE__ */ e("div", { className: "text-ds-md text-surface-fg", children: /* @__PURE__ */ e(H, { text: i }) }) })
|
|
107
107
|
] })
|
|
108
108
|
},
|
|
109
109
|
"streaming-text"
|
|
110
110
|
),
|
|
111
|
-
|
|
111
|
+
l && !i && /* @__PURE__ */ e(
|
|
112
112
|
g.div,
|
|
113
113
|
{
|
|
114
114
|
initial: { opacity: 0, y: 10 },
|
|
@@ -116,8 +116,8 @@ const K = w.forwardRef(
|
|
|
116
116
|
transition: v.snappy,
|
|
117
117
|
className: "flex justify-start",
|
|
118
118
|
children: /* @__PURE__ */ s("div", { className: "flex max-w-[85%] items-start gap-ds-03", children: [
|
|
119
|
-
/* @__PURE__ */ e("div", { className: "flex h-ds-xs-plus w-ds-xs-plus shrink-0 items-center justify-center rounded-ds-full bg-surface-
|
|
120
|
-
/* @__PURE__ */ e("div", { className: "rounded-ds-2xl rounded-bl-ds-sm bg-surface-
|
|
119
|
+
/* @__PURE__ */ e("div", { className: "flex h-ds-xs-plus w-ds-xs-plus shrink-0 items-center justify-center rounded-ds-full bg-surface-raised-hover", children: /* @__PURE__ */ e(C, { className: "h-ico-sm w-ico-sm text-surface-fg-muted" }) }),
|
|
120
|
+
/* @__PURE__ */ e("div", { className: "rounded-ds-2xl rounded-bl-ds-sm bg-surface-raised-hover px-ds-04 py-ds-03", children: /* @__PURE__ */ e("div", { className: "flex items-center gap-ds-02b py-ds-02", children: [0, 1, 2].map((a) => /* @__PURE__ */ e(
|
|
121
121
|
g.span,
|
|
122
122
|
{
|
|
123
123
|
className: "h-2 w-2 rounded-ds-full bg-surface-fg-subtle",
|
|
@@ -136,8 +136,8 @@ const K = w.forwardRef(
|
|
|
136
136
|
K.displayName = "MessageList";
|
|
137
137
|
const U = w.forwardRef(
|
|
138
138
|
function({
|
|
139
|
-
onSubmit:
|
|
140
|
-
onCancel:
|
|
139
|
+
onSubmit: d,
|
|
140
|
+
onCancel: l,
|
|
141
141
|
isStreaming: i = !1,
|
|
142
142
|
placeholder: f = "Ask Karm AI...",
|
|
143
143
|
disclaimer: c = "AI responses may be inaccurate. Verify important information.",
|
|
@@ -149,15 +149,15 @@ const U = w.forwardRef(
|
|
|
149
149
|
r && (r.style.height = "auto", r.style.height = Math.min(r.scrollHeight, 160) + "px");
|
|
150
150
|
}, []), y = T(() => {
|
|
151
151
|
const r = n.trim();
|
|
152
|
-
!r || i || (h(""), t.current && (t.current.style.height = "auto"),
|
|
153
|
-
}, [n, i,
|
|
152
|
+
!r || i || (h(""), t.current && (t.current.style.height = "auto"), d(r));
|
|
153
|
+
}, [n, i, d]), N = T(
|
|
154
154
|
(r) => {
|
|
155
155
|
r.key === "Enter" && !r.shiftKey && (r.preventDefault(), y());
|
|
156
156
|
},
|
|
157
157
|
[y]
|
|
158
158
|
);
|
|
159
|
-
return /* @__PURE__ */ s("div", { ref: m, className: x("border-t border-surface-border-strong bg-surface-
|
|
160
|
-
/* @__PURE__ */ s("div", { className: "flex items-end gap-ds-03 rounded-ds-xl border border-surface-border-strong bg-surface-
|
|
159
|
+
return /* @__PURE__ */ s("div", { ref: m, className: x("border-t border-surface-border-strong bg-surface-raised p-ds-04", u), ...o, children: [
|
|
160
|
+
/* @__PURE__ */ s("div", { className: "flex items-end gap-ds-03 rounded-ds-xl border border-surface-border-strong bg-surface-raised-hover px-ds-04 py-ds-03", children: [
|
|
161
161
|
/* @__PURE__ */ e(
|
|
162
162
|
"textarea",
|
|
163
163
|
{
|
|
@@ -174,7 +174,7 @@ const U = w.forwardRef(
|
|
|
174
174
|
className: "text-ds-md no-scrollbar max-h-[160px] min-h-ds-xs flex-1 resize-none bg-transparent text-surface-fg placeholder:text-surface-fg-subtle focus:outline-none disabled:opacity-action-disabled"
|
|
175
175
|
}
|
|
176
176
|
),
|
|
177
|
-
i ? /* @__PURE__ */ e(D, { variant: "solid", color: "error", size: "icon-sm", className: "h-ds-sm w-ds-sm shrink-0 rounded-ds-lg", onClick:
|
|
177
|
+
i ? /* @__PURE__ */ e(D, { variant: "solid", color: "error", size: "icon-sm", className: "h-ds-sm w-ds-sm shrink-0 rounded-ds-lg", onClick: l, "aria-label": "Stop generating", children: /* @__PURE__ */ e(S, { className: "h-ico-sm w-ico-sm" }) }) : /* @__PURE__ */ e(D, { size: "icon-sm", className: "h-ds-sm w-ds-sm shrink-0 rounded-ds-lg", onClick: y, disabled: !n.trim(), "aria-label": "Send message", children: /* @__PURE__ */ e(ee, { className: "h-ico-sm w-ico-sm" }) })
|
|
178
178
|
] }),
|
|
179
179
|
c && /* @__PURE__ */ e("p", { className: "text-ds-sm mt-ds-02b text-center text-surface-fg-subtle", children: c })
|
|
180
180
|
] });
|
|
@@ -183,8 +183,8 @@ const U = w.forwardRef(
|
|
|
183
183
|
U.displayName = "ChatInput";
|
|
184
184
|
const z = w.forwardRef(
|
|
185
185
|
function({
|
|
186
|
-
conversations:
|
|
187
|
-
activeConversationId:
|
|
186
|
+
conversations: d,
|
|
187
|
+
activeConversationId: l,
|
|
188
188
|
isLoading: i = !1,
|
|
189
189
|
onSelect: f,
|
|
190
190
|
onNewChat: c,
|
|
@@ -200,7 +200,7 @@ const z = w.forwardRef(
|
|
|
200
200
|
"button",
|
|
201
201
|
{
|
|
202
202
|
onClick: c,
|
|
203
|
-
className: "flex items-center gap-ds-02b rounded-ds-lg px-ds-03 py-ds-02b text-surface-fg-muted transition-colors hover:bg-surface-
|
|
203
|
+
className: "flex items-center gap-ds-02b rounded-ds-lg px-ds-03 py-ds-02b text-surface-fg-muted transition-colors hover:bg-surface-raised-hover",
|
|
204
204
|
children: [
|
|
205
205
|
/* @__PURE__ */ e(E, { className: "h-ico-sm w-ico-sm" }),
|
|
206
206
|
/* @__PURE__ */ e("span", { className: "text-ds-sm", children: "New Chat" })
|
|
@@ -208,15 +208,15 @@ const z = w.forwardRef(
|
|
|
208
208
|
}
|
|
209
209
|
)
|
|
210
210
|
] }),
|
|
211
|
-
/* @__PURE__ */ e("div", { className: "no-scrollbar flex-1 overflow-y-auto", children: i ? /* @__PURE__ */ e("div", { className: "flex items-center justify-center py-12", children: /* @__PURE__ */ e("div", { className: "h-ico-md w-ico-md animate-spin rounded-ds-full border-2 border-surface-border border-t-transparent" }) }) :
|
|
211
|
+
/* @__PURE__ */ e("div", { className: "no-scrollbar flex-1 overflow-y-auto", children: i ? /* @__PURE__ */ e("div", { className: "flex items-center justify-center py-12", children: /* @__PURE__ */ e("div", { className: "h-ico-md w-ico-md animate-spin rounded-ds-full border-2 border-surface-border border-t-transparent" }) }) : d.length === 0 ? /* @__PURE__ */ s("div", { className: "flex flex-col items-center justify-center gap-ds-03 py-12", children: [
|
|
212
212
|
/* @__PURE__ */ e(se, { className: "h-ds-sm w-ds-sm text-surface-fg-subtle" }),
|
|
213
213
|
/* @__PURE__ */ e("p", { className: "text-ds-md text-surface-fg-subtle", children: "No conversations yet" })
|
|
214
|
-
] }) : /* @__PURE__ */ e("div", { className: "flex flex-col", children:
|
|
214
|
+
] }) : /* @__PURE__ */ e("div", { className: "flex flex-col", children: d.map((t) => /* @__PURE__ */ s(
|
|
215
215
|
"div",
|
|
216
216
|
{
|
|
217
217
|
className: x(
|
|
218
|
-
"group flex items-center gap-ds-04 border-b border-surface-border px-ds-05 py-ds-04 transition-colors hover:bg-surface-
|
|
219
|
-
|
|
218
|
+
"group flex items-center gap-ds-04 border-b border-surface-border px-ds-05 py-ds-04 transition-colors hover:bg-surface-raised-hover",
|
|
219
|
+
l === t.id && "bg-surface-raised-hover"
|
|
220
220
|
),
|
|
221
221
|
children: [
|
|
222
222
|
/* @__PURE__ */ s(
|
|
@@ -226,18 +226,18 @@ const z = w.forwardRef(
|
|
|
226
226
|
className: "flex min-w-0 flex-1 flex-col gap-ds-01 text-left",
|
|
227
227
|
children: [
|
|
228
228
|
/* @__PURE__ */ e("p", { className: "text-ds-md truncate text-surface-fg", children: t.title || "Untitled conversation" }),
|
|
229
|
-
/* @__PURE__ */ e("p", { className: "text-ds-sm text-surface-fg-subtle", children:
|
|
229
|
+
/* @__PURE__ */ e("p", { className: "text-ds-sm text-surface-fg-subtle", children: le(t.updatedAt) })
|
|
230
230
|
]
|
|
231
231
|
}
|
|
232
232
|
),
|
|
233
|
-
/* @__PURE__ */ s("div", { className: "flex shrink-0 items-center gap-ds-02 opacity-0 transition-opacity group-hover:opacity-100", children: [
|
|
233
|
+
/* @__PURE__ */ s("div", { className: "flex shrink-0 items-center gap-ds-02 opacity-0 transition-opacity duration-fast-01 group-hover:opacity-100", children: [
|
|
234
234
|
u && /* @__PURE__ */ e(
|
|
235
235
|
"button",
|
|
236
236
|
{
|
|
237
237
|
onClick: (a) => {
|
|
238
238
|
a.stopPropagation(), u(t.id);
|
|
239
239
|
},
|
|
240
|
-
className: "flex h-ds-xs-plus w-ds-xs-plus items-center justify-center rounded-ds-md text-surface-fg-subtle transition-colors hover:bg-surface-
|
|
240
|
+
className: "flex h-ds-xs-plus w-ds-xs-plus items-center justify-center rounded-ds-md text-surface-fg-subtle transition-colors hover:bg-surface-raised-hover hover:text-surface-fg-muted",
|
|
241
241
|
"aria-label": "Archive conversation",
|
|
242
242
|
children: /* @__PURE__ */ e(ae, { className: "h-ico-sm w-ico-sm" })
|
|
243
243
|
}
|
|
@@ -272,8 +272,8 @@ const fe = [
|
|
|
272
272
|
{ id: "dwar-palak", name: "Dwar-Palak", desc: "Access Control" }
|
|
273
273
|
], ue = w.forwardRef(
|
|
274
274
|
function({
|
|
275
|
-
isOpen:
|
|
276
|
-
onOpenChange:
|
|
275
|
+
isOpen: d,
|
|
276
|
+
onOpenChange: l,
|
|
277
277
|
messages: i,
|
|
278
278
|
conversations: f,
|
|
279
279
|
agents: c = fe,
|
|
@@ -294,12 +294,12 @@ const fe = [
|
|
|
294
294
|
...q
|
|
295
295
|
}, B) {
|
|
296
296
|
const [M, j] = P(!1), b = c.find((p) => p.id === u) ?? c[0];
|
|
297
|
-
return /* @__PURE__ */ e(_, { open:
|
|
297
|
+
return /* @__PURE__ */ e(_, { open: d, onOpenChange: l, children: /* @__PURE__ */ s(
|
|
298
298
|
J,
|
|
299
299
|
{
|
|
300
300
|
ref: B,
|
|
301
301
|
side: "right",
|
|
302
|
-
className: x("flex w-full flex-col gap-0 border-l border-surface-border-strong bg-surface-
|
|
302
|
+
className: x("flex w-full flex-col gap-0 border-l border-surface-border-strong bg-surface-raised p-0 sm:max-w-[480px] [&>button]:hidden", V),
|
|
303
303
|
...q,
|
|
304
304
|
children: [
|
|
305
305
|
/* @__PURE__ */ e(Q, { className: "sr-only", children: "AI Chat" }),
|
|
@@ -308,7 +308,7 @@ const fe = [
|
|
|
308
308
|
/* @__PURE__ */ e(ne, { asChild: !0, children: /* @__PURE__ */ s(
|
|
309
309
|
"button",
|
|
310
310
|
{
|
|
311
|
-
className: "flex items-center gap-ds-02b rounded-ds-lg px-ds-03 py-ds-02b transition-colors hover:bg-surface-
|
|
311
|
+
className: "flex items-center gap-ds-02b rounded-ds-lg px-ds-03 py-ds-02b transition-colors hover:bg-surface-raised-hover",
|
|
312
312
|
children: [
|
|
313
313
|
/* @__PURE__ */ e("span", { className: "text-ds-base text-surface-fg", children: b == null ? void 0 : b.name }),
|
|
314
314
|
/* @__PURE__ */ e("span", { className: "text-ds-sm text-surface-fg-subtle", children: b == null ? void 0 : b.desc }),
|
|
@@ -320,7 +320,7 @@ const fe = [
|
|
|
320
320
|
me,
|
|
321
321
|
{
|
|
322
322
|
onClick: () => N == null ? void 0 : N(p.id),
|
|
323
|
-
className: u === p.id ? "bg-surface-
|
|
323
|
+
className: u === p.id ? "bg-surface-raised-hover" : "",
|
|
324
324
|
children: /* @__PURE__ */ s("div", { className: "flex flex-col", children: [
|
|
325
325
|
/* @__PURE__ */ e("span", { className: "text-ds-md text-surface-fg", children: p.name }),
|
|
326
326
|
/* @__PURE__ */ e("span", { className: "text-ds-sm text-surface-fg-subtle", children: p.desc })
|
|
@@ -335,7 +335,7 @@ const fe = [
|
|
|
335
335
|
onClick: () => {
|
|
336
336
|
r == null || r(), j(!1);
|
|
337
337
|
},
|
|
338
|
-
className: "flex h-ds-sm w-ds-sm items-center justify-center rounded-ds-lg text-surface-fg-muted transition-colors hover:bg-surface-
|
|
338
|
+
className: "flex h-ds-sm w-ds-sm items-center justify-center rounded-ds-lg text-surface-fg-muted transition-colors hover:bg-surface-raised-hover",
|
|
339
339
|
"aria-label": "New chat",
|
|
340
340
|
children: /* @__PURE__ */ e(E, { className: "h-ico-sm w-ico-sm" })
|
|
341
341
|
}
|
|
@@ -345,8 +345,8 @@ const fe = [
|
|
|
345
345
|
{
|
|
346
346
|
onClick: () => j(!M),
|
|
347
347
|
className: x(
|
|
348
|
-
"flex h-ds-sm w-ds-sm items-center justify-center rounded-ds-lg transition-colors hover:bg-surface-
|
|
349
|
-
M ? "bg-surface-
|
|
348
|
+
"flex h-ds-sm w-ds-sm items-center justify-center rounded-ds-lg transition-colors hover:bg-surface-raised-hover",
|
|
349
|
+
M ? "bg-surface-raised-hover text-surface-fg" : "text-surface-fg-muted"
|
|
350
350
|
),
|
|
351
351
|
"aria-label": "Conversation history",
|
|
352
352
|
children: /* @__PURE__ */ e(ie, { className: "h-ico-sm w-ico-sm" })
|
|
@@ -355,10 +355,10 @@ const fe = [
|
|
|
355
355
|
/* @__PURE__ */ e(
|
|
356
356
|
"button",
|
|
357
357
|
{
|
|
358
|
-
onClick: () =>
|
|
359
|
-
className: "flex h-ds-sm w-ds-sm items-center justify-center rounded-ds-lg text-surface-fg-muted transition-colors hover:bg-surface-
|
|
358
|
+
onClick: () => l(!1),
|
|
359
|
+
className: "flex h-ds-sm w-ds-sm items-center justify-center rounded-ds-lg text-surface-fg-muted transition-colors hover:bg-surface-raised-hover",
|
|
360
360
|
"aria-label": "Close chat",
|
|
361
|
-
children: /* @__PURE__ */ e(
|
|
361
|
+
children: /* @__PURE__ */ e(de, { className: "h-ico-sm w-ico-sm" })
|
|
362
362
|
}
|
|
363
363
|
)
|
|
364
364
|
] }),
|
|
@@ -3,7 +3,7 @@ import { jsx as e, jsxs as a, Fragment as ve } from "react/jsx-runtime";
|
|
|
3
3
|
import * as P from "react";
|
|
4
4
|
import { useMemo as re, useState as E, useEffect as oe, useCallback as O, useContext as bt, createContext as xt, useRef as ye } from "react";
|
|
5
5
|
import { createPortal as wt } from "react-dom";
|
|
6
|
-
import { u as Pe, C as _e,
|
|
6
|
+
import { u as Pe, C as _e, a as vt, S as ze, v as yt, b as kt, c as De, D as Ct, d as Nt, h as It, e as Dt, s as Tt, K as Rt, T as St, P as At } from "./vendor-dnd.js";
|
|
7
7
|
import { cn as N } from "@devalok/shilp-sutra/ui/lib/utils";
|
|
8
8
|
import { MotionStagger as le, MotionStaggerItem as Q } from "@devalok/shilp-sutra/motion/primitives";
|
|
9
9
|
import { Input as ke } from "@devalok/shilp-sutra/ui/input";
|
|
@@ -11,11 +11,12 @@ import { Button as F } from "@devalok/shilp-sutra/ui/button";
|
|
|
11
11
|
import { Badge as Mt } from "@devalok/shilp-sutra/ui/badge";
|
|
12
12
|
import { DropdownMenu as U, DropdownMenuTrigger as V, DropdownMenuContent as G, DropdownMenuLabel as te, DropdownMenuSeparator as Y, DropdownMenuCheckboxItem as Te, DropdownMenuRadioGroup as Lt, DropdownMenuRadioItem as Et, DropdownMenuItem as _ } from "@devalok/shilp-sutra/ui/dropdown-menu";
|
|
13
13
|
import { SegmentedControl as Ot } from "@devalok/shilp-sutra/ui/segmented-control";
|
|
14
|
-
import { IconX as Ce, IconSearch as Bt, IconFilter as Wt, IconUser as ce, IconLayoutGrid as Ft, IconLayoutList as $t, IconArrowRight as Se, IconAlertTriangle as Ne, IconEye as de, IconTrash as Ae, IconPlus as Me, IconDots as Pt, IconPencil as _t, IconGauge as zt, IconEyeOff as
|
|
14
|
+
import { IconX as Ce, IconSearch as Bt, IconFilter as Wt, IconUser as ce, IconLayoutGrid as Ft, IconLayoutList as $t, IconArrowRight as Se, IconAlertTriangle as Ne, IconEye as de, IconTrash as Ae, IconPlus as Me, IconDots as Pt, IconPencil as _t, IconGauge as zt, IconEyeOff as Ue, IconCalendar as Le, IconCheck as Ut, IconArrowUp as Ve, IconArrowDown as Ge, IconGripVertical as Vt, IconSubtask as Gt, IconLock as Kt, IconTag as Ht } from "@tabler/icons-react";
|
|
15
15
|
import { AnimatePresence as ie, motion as se } from "framer-motion";
|
|
16
16
|
import { springs as ae, motionProps as jt } from "@devalok/shilp-sutra/ui/lib/motion";
|
|
17
17
|
import { AvatarGroup as Yt } from "@devalok/shilp-sutra/composed/avatar-group";
|
|
18
|
-
import { u as
|
|
18
|
+
import { u as Ke } from "./use-composed-ref.js";
|
|
19
|
+
import { w as He } from "./vendor-utils.js";
|
|
19
20
|
import { Checkbox as je } from "@devalok/shilp-sutra/ui";
|
|
20
21
|
import { Avatar as Qt, AvatarImage as qt, AvatarFallback as Xt } from "@devalok/shilp-sutra/ui/avatar";
|
|
21
22
|
import { ContextMenu as Jt, ContextMenuTrigger as Zt, ContextMenuContent as es, ContextMenuSub as be, ContextMenuSubTrigger as xe, ContextMenuSubContent as we, ContextMenuItem as ee, ContextMenuSeparator as ts } from "@devalok/shilp-sutra/ui/context-menu";
|
|
@@ -28,7 +29,7 @@ const ss = 320, Be = [
|
|
|
28
29
|
"bg-category-emerald-9",
|
|
29
30
|
"bg-category-slate-9",
|
|
30
31
|
"bg-accent-9"
|
|
31
|
-
],
|
|
32
|
+
], Vs = {
|
|
32
33
|
LOW: "IconArrowDown",
|
|
33
34
|
MEDIUM: "IconArrowRight",
|
|
34
35
|
HIGH: "IconArrowUp",
|
|
@@ -801,7 +802,7 @@ const Je = P.forwardRef(({ column: t, index: s, className: n, ...r }, c) => {
|
|
|
801
802
|
variant: "ghost",
|
|
802
803
|
size: "icon-md",
|
|
803
804
|
className: N(
|
|
804
|
-
"h-ds-xs w-ds-xs flex-shrink-0 opacity-0 transition-opacity",
|
|
805
|
+
"h-ds-xs w-ds-xs flex-shrink-0 opacity-0 transition-opacity duration-fast-02",
|
|
805
806
|
"group-hover/header:opacity-100 focus:opacity-100",
|
|
806
807
|
"hover:bg-accent-2 hover:text-accent-11"
|
|
807
808
|
),
|
|
@@ -818,7 +819,7 @@ const Je = P.forwardRef(({ column: t, index: s, className: n, ...r }, c) => {
|
|
|
818
819
|
variant: "ghost",
|
|
819
820
|
size: "icon-md",
|
|
820
821
|
className: N(
|
|
821
|
-
"h-ds-xs w-ds-xs flex-shrink-0 opacity-0 transition-opacity",
|
|
822
|
+
"h-ds-xs w-ds-xs flex-shrink-0 opacity-0 transition-opacity duration-fast-02",
|
|
822
823
|
"group-hover/header:opacity-100 focus:opacity-100"
|
|
823
824
|
),
|
|
824
825
|
"aria-label": "Column options",
|
|
@@ -840,7 +841,7 @@ const Je = P.forwardRef(({ column: t, index: s, className: n, ...r }, c) => {
|
|
|
840
841
|
{
|
|
841
842
|
onClick: () => w(t.id, !(t.isClientVisible ?? !1)),
|
|
842
843
|
children: t.isClientVisible ? /* @__PURE__ */ a(ve, { children: [
|
|
843
|
-
/* @__PURE__ */ e(
|
|
844
|
+
/* @__PURE__ */ e(Ue, { className: "mr-ds-03 h-ico-sm w-ico-sm" }),
|
|
844
845
|
"Hide from client"
|
|
845
846
|
] }) : /* @__PURE__ */ a(ve, { children: [
|
|
846
847
|
/* @__PURE__ */ e(de, { className: "mr-ds-03 h-ico-sm w-ico-sm" }),
|
|
@@ -901,7 +902,7 @@ const Je = P.forwardRef(({ column: t, index: s, className: n, ...r }, c) => {
|
|
|
901
902
|
{
|
|
902
903
|
className: N(
|
|
903
904
|
"flex items-center justify-center h-6 w-6 rounded-ds-md transition-colors",
|
|
904
|
-
f ? "text-accent-11 bg-accent-2" : "text-surface-fg-subtle hover:text-surface-fg hover:bg-surface-
|
|
905
|
+
f ? "text-accent-11 bg-accent-2" : "text-surface-fg-subtle hover:text-surface-fg hover:bg-surface-raised-active"
|
|
905
906
|
),
|
|
906
907
|
title: f ? `Lead: ${(fe = i.find((k) => k.id === f)) == null ? void 0 : fe.name}` : "Assign task lead",
|
|
907
908
|
"aria-label": "Assign task lead",
|
|
@@ -933,7 +934,7 @@ const Je = P.forwardRef(({ column: t, index: s, className: n, ...r }, c) => {
|
|
|
933
934
|
{
|
|
934
935
|
className: N(
|
|
935
936
|
"relative flex items-center justify-center h-6 w-6 rounded-ds-md cursor-pointer transition-colors",
|
|
936
|
-
L ? "text-accent-11 bg-accent-2" : "text-surface-fg-subtle hover:text-surface-fg hover:bg-surface-
|
|
937
|
+
L ? "text-accent-11 bg-accent-2" : "text-surface-fg-subtle hover:text-surface-fg hover:bg-surface-raised-active"
|
|
937
938
|
),
|
|
938
939
|
title: L ? `Due: ${L}` : "Set due date",
|
|
939
940
|
"aria-label": "Set due date",
|
|
@@ -971,7 +972,7 @@ const Je = P.forwardRef(({ column: t, index: s, className: n, ...r }, c) => {
|
|
|
971
972
|
"button",
|
|
972
973
|
{
|
|
973
974
|
onClick: J,
|
|
974
|
-
className: "flex items-center justify-center h-6 w-6 rounded-ds-md text-surface-fg-subtle hover:text-surface-fg hover:bg-surface-
|
|
975
|
+
className: "flex items-center justify-center h-6 w-6 rounded-ds-md text-surface-fg-subtle hover:text-surface-fg hover:bg-surface-raised-active transition-colors",
|
|
975
976
|
title: "Cancel",
|
|
976
977
|
"aria-label": "Cancel adding task",
|
|
977
978
|
children: /* @__PURE__ */ e(Ce, { className: "h-3.5 w-3.5" })
|
|
@@ -1131,18 +1132,18 @@ function gs(t) {
|
|
|
1131
1132
|
};
|
|
1132
1133
|
}
|
|
1133
1134
|
const et = {
|
|
1134
|
-
LOW:
|
|
1135
|
+
LOW: Ge,
|
|
1135
1136
|
MEDIUM: Se,
|
|
1136
|
-
HIGH:
|
|
1137
|
+
HIGH: Ve,
|
|
1137
1138
|
URGENT: Ne
|
|
1138
|
-
}, ps =
|
|
1139
|
-
"group/card relative rounded-ds-lg border border-transparent bg-surface-
|
|
1139
|
+
}, ps = He(
|
|
1140
|
+
"group/card relative rounded-ds-lg border border-transparent bg-surface-raised pl-3 pr-ds-03 py-ds-03 transition-[box-shadow,border-color,transform] duration-fast-02 ease-productive-standard cursor-pointer",
|
|
1140
1141
|
{
|
|
1141
1142
|
variants: {
|
|
1142
1143
|
state: {
|
|
1143
|
-
default: "shadow-
|
|
1144
|
+
default: "shadow-raised hover:shadow-raised-hover hover:-translate-y-px hover:border-surface-border-strong",
|
|
1144
1145
|
dragging: "opacity-action-disabled",
|
|
1145
|
-
overlay: "rotate-[2deg] shadow-
|
|
1146
|
+
overlay: "rotate-[2deg] shadow-floating backdrop-blur-sm ring-1 ring-accent-7"
|
|
1146
1147
|
},
|
|
1147
1148
|
blocked: {
|
|
1148
1149
|
true: "border-l-2 border-l-error-9",
|
|
@@ -1205,7 +1206,7 @@ function st({
|
|
|
1205
1206
|
selected: x,
|
|
1206
1207
|
dimmed: v
|
|
1207
1208
|
}),
|
|
1208
|
-
n && "scale-[1.03] rotate-[1.5deg] shadow-
|
|
1209
|
+
n && "scale-[1.03] rotate-[1.5deg] shadow-floating",
|
|
1209
1210
|
s && "opacity-40",
|
|
1210
1211
|
d && "ring-1 ring-accent-9"
|
|
1211
1212
|
),
|
|
@@ -1218,7 +1219,7 @@ function st({
|
|
|
1218
1219
|
se.div,
|
|
1219
1220
|
{
|
|
1220
1221
|
className: N(
|
|
1221
|
-
"absolute -top-2 -left-2 z-10 transition-opacity",
|
|
1222
|
+
"absolute -top-2 -left-2 z-10 transition-opacity duration-fast-02",
|
|
1222
1223
|
g || x ? "opacity-100" : "opacity-0 group-hover/card:opacity-100"
|
|
1223
1224
|
),
|
|
1224
1225
|
initial: g || x ? { scale: 0.85 } : !1,
|
|
@@ -1231,7 +1232,7 @@ function st({
|
|
|
1231
1232
|
onCheckedChange: () => o(t.id),
|
|
1232
1233
|
onClick: (h) => h.stopPropagation(),
|
|
1233
1234
|
"aria-label": `Select task ${t.taskId}`,
|
|
1234
|
-
className: "rounded-full bg-surface-
|
|
1235
|
+
className: "rounded-full bg-surface-base shadow-raised"
|
|
1235
1236
|
}
|
|
1236
1237
|
)
|
|
1237
1238
|
}
|
|
@@ -1244,7 +1245,7 @@ function st({
|
|
|
1244
1245
|
"button",
|
|
1245
1246
|
{
|
|
1246
1247
|
className: N(
|
|
1247
|
-
"flex-shrink-0 cursor-grab rounded p-ds-01 opacity-0 transition-opacity",
|
|
1248
|
+
"flex-shrink-0 cursor-grab rounded p-ds-01 opacity-0 transition-opacity duration-fast-02",
|
|
1248
1249
|
"group-hover/card:opacity-action-disabled hover:!opacity-100",
|
|
1249
1250
|
"active:cursor-grabbing",
|
|
1250
1251
|
n && "opacity-action-disabled"
|
|
@@ -1298,7 +1299,7 @@ function st({
|
|
|
1298
1299
|
{
|
|
1299
1300
|
size: "xs",
|
|
1300
1301
|
className: N(
|
|
1301
|
-
"text-ds-xs border-2 border-surface-
|
|
1302
|
+
"text-ds-xs border-2 border-surface-base",
|
|
1302
1303
|
f > 0 && "-ml-ds-02b",
|
|
1303
1304
|
h.isOwner && "shadow-[0_0_0_1.5px_rgba(var(--accent-rgb,99,102,241),0.35),0_0_6px_rgba(var(--accent-rgb,99,102,241),0.2)]"
|
|
1304
1305
|
),
|
|
@@ -1337,7 +1338,7 @@ const at = P.forwardRef(
|
|
|
1337
1338
|
type: "task",
|
|
1338
1339
|
task: s
|
|
1339
1340
|
}
|
|
1340
|
-
}), g =
|
|
1341
|
+
}), g = Ke(I, c), d = {
|
|
1341
1342
|
transform: _e.Transform.toString(w),
|
|
1342
1343
|
transition: p
|
|
1343
1344
|
};
|
|
@@ -1352,8 +1353,8 @@ const at = P.forwardRef(
|
|
|
1352
1353
|
}
|
|
1353
1354
|
);
|
|
1354
1355
|
at.displayName = "TaskCard";
|
|
1355
|
-
const bs =
|
|
1356
|
-
"group/card flex items-center gap-ds-02 py-2 pl-3 pr-ds-03 border border-transparent rounded-ds-lg bg-surface-
|
|
1356
|
+
const bs = He(
|
|
1357
|
+
"group/card flex items-center gap-ds-02 py-2 pl-3 pr-ds-03 border border-transparent rounded-ds-lg bg-surface-raised transition-[box-shadow,border-color,transform,background-color] duration-fast-02 ease-productive-standard cursor-pointer hover:bg-surface-raised-hover hover:shadow-raised-hover hover:-translate-y-px",
|
|
1357
1358
|
{
|
|
1358
1359
|
variants: {
|
|
1359
1360
|
selected: {
|
|
@@ -1401,7 +1402,7 @@ function nt({
|
|
|
1401
1402
|
dimmed: D
|
|
1402
1403
|
}),
|
|
1403
1404
|
s && "opacity-40",
|
|
1404
|
-
n && "scale-[1.03] rotate-[1.5deg] shadow-
|
|
1405
|
+
n && "scale-[1.03] rotate-[1.5deg] shadow-floating",
|
|
1405
1406
|
g && "ring-1 ring-accent-9"
|
|
1406
1407
|
),
|
|
1407
1408
|
onClick: () => w(t.id),
|
|
@@ -1413,7 +1414,7 @@ function nt({
|
|
|
1413
1414
|
se.div,
|
|
1414
1415
|
{
|
|
1415
1416
|
className: N(
|
|
1416
|
-
"absolute -top-1.5 -left-1.5 z-10 transition-opacity",
|
|
1417
|
+
"absolute -top-1.5 -left-1.5 z-10 transition-opacity duration-fast-02",
|
|
1417
1418
|
x || p ? "opacity-100" : "opacity-0 group-hover/card:opacity-100"
|
|
1418
1419
|
),
|
|
1419
1420
|
initial: x || p ? { scale: 0.85 } : !1,
|
|
@@ -1426,7 +1427,7 @@ function nt({
|
|
|
1426
1427
|
onCheckedChange: () => c(t.id),
|
|
1427
1428
|
onClick: (m) => m.stopPropagation(),
|
|
1428
1429
|
"aria-label": `Select task ${t.taskId}`,
|
|
1429
|
-
className: "rounded-full bg-surface-
|
|
1430
|
+
className: "rounded-full bg-surface-base shadow-raised"
|
|
1430
1431
|
}
|
|
1431
1432
|
)
|
|
1432
1433
|
}
|
|
@@ -1443,7 +1444,7 @@ function nt({
|
|
|
1443
1444
|
"div",
|
|
1444
1445
|
{
|
|
1445
1446
|
className: N(
|
|
1446
|
-
"flex h-[14px] w-[14px] shrink-0 items-center justify-center rounded-full border border-surface-
|
|
1447
|
+
"flex h-[14px] w-[14px] shrink-0 items-center justify-center rounded-full border border-surface-base bg-accent-2 text-[6px] font-semibold leading-none text-accent-11 overflow-hidden",
|
|
1447
1448
|
t.owner && "shadow-[0_0_0_1px_rgba(var(--accent-rgb,99,102,241),0.35),0_0_4px_rgba(var(--accent-rgb,99,102,241),0.2)]"
|
|
1448
1449
|
),
|
|
1449
1450
|
title: l.name,
|
|
@@ -1470,7 +1471,7 @@ const rt = P.forwardRef(
|
|
|
1470
1471
|
type: "task",
|
|
1471
1472
|
task: s
|
|
1472
1473
|
}
|
|
1473
|
-
}), g =
|
|
1474
|
+
}), g = Ke(I, c), d = {
|
|
1474
1475
|
transform: _e.Transform.toString(w),
|
|
1475
1476
|
transition: p
|
|
1476
1477
|
};
|
|
@@ -1496,9 +1497,9 @@ const ot = P.forwardRef(
|
|
|
1496
1497
|
);
|
|
1497
1498
|
ot.displayName = "TaskCardOverlay";
|
|
1498
1499
|
const xs = [
|
|
1499
|
-
{ value: "LOW", label: "Low", icon:
|
|
1500
|
+
{ value: "LOW", label: "Low", icon: Ge },
|
|
1500
1501
|
{ value: "MEDIUM", label: "Medium", icon: Se },
|
|
1501
|
-
{ value: "HIGH", label: "High", icon:
|
|
1502
|
+
{ value: "HIGH", label: "High", icon: Ve },
|
|
1502
1503
|
{ value: "URGENT", label: "Urgent", icon: Ne }
|
|
1503
1504
|
], lt = P.forwardRef(({ taskId: t, children: s, className: n }, r) => {
|
|
1504
1505
|
const {
|
|
@@ -1606,7 +1607,7 @@ const xs = [
|
|
|
1606
1607
|
{
|
|
1607
1608
|
onSelect: () => x(t, "INTERNAL"),
|
|
1608
1609
|
children: [
|
|
1609
|
-
/* @__PURE__ */ e(
|
|
1610
|
+
/* @__PURE__ */ e(Ue, { className: "mr-ds-03 h-ico-sm w-ico-sm" }),
|
|
1610
1611
|
"Internal only"
|
|
1611
1612
|
]
|
|
1612
1613
|
}
|
|
@@ -1670,9 +1671,9 @@ const ct = P.forwardRef(
|
|
|
1670
1671
|
{
|
|
1671
1672
|
ref: w,
|
|
1672
1673
|
className: N(
|
|
1673
|
-
"flex h-full flex-shrink-0 flex-col rounded-ds-xl bg-surface-
|
|
1674
|
-
r && "shadow-
|
|
1675
|
-
C && "bg-error-3",
|
|
1674
|
+
"flex h-full flex-shrink-0 flex-col rounded-ds-xl bg-surface-sunken border border-surface-border-subtle hover:border-surface-border transition-colors p-1",
|
|
1675
|
+
r && "shadow-overlay",
|
|
1676
|
+
C && "bg-error-3 border-error-7",
|
|
1676
1677
|
u
|
|
1677
1678
|
),
|
|
1678
1679
|
...I,
|
|
@@ -1689,7 +1690,7 @@ const ct = P.forwardRef(
|
|
|
1689
1690
|
transition: ae.snappy,
|
|
1690
1691
|
className: "no-scrollbar flex flex-1 flex-col gap-ds-02 overflow-y-auto px-ds-03 pt-2.5 pb-ds-03",
|
|
1691
1692
|
children: [
|
|
1692
|
-
/* @__PURE__ */ a(
|
|
1693
|
+
/* @__PURE__ */ a(ze, { items: d, strategy: yt, children: [
|
|
1693
1694
|
/* @__PURE__ */ e(le, { className: "contents", children: s.tasks.map((D, l) => /* @__PURE__ */ a(P.Fragment, { children: [
|
|
1694
1695
|
/* @__PURE__ */ e(ie, { children: c && c.index === l && /* @__PURE__ */ e(Re, {}) }),
|
|
1695
1696
|
/* @__PURE__ */ e(Q, { children: /* @__PURE__ */ e(lt, { taskId: D.id, children: p === "compact" ? /* @__PURE__ */ e(rt, { task: D }) : /* @__PURE__ */ e(at, { task: D }) }) })
|
|
@@ -1960,7 +1961,7 @@ function ys({ className: t }) {
|
|
|
1960
1961
|
className: "no-scrollbar flex h-full gap-ds-05 overflow-x-auto pb-ds-05 outline-none",
|
|
1961
1962
|
children: [
|
|
1962
1963
|
/* @__PURE__ */ e(
|
|
1963
|
-
|
|
1964
|
+
ze,
|
|
1964
1965
|
{
|
|
1965
1966
|
items: D,
|
|
1966
1967
|
strategy: It,
|
|
@@ -1987,7 +1988,7 @@ function ys({ className: t }) {
|
|
|
1987
1988
|
{
|
|
1988
1989
|
variant: "ghost",
|
|
1989
1990
|
onClick: u,
|
|
1990
|
-
className: "h-ds-md w-[320px] justify-start gap-ds-03 rounded-ds-xl border border-dashed border-surface-border bg-surface-
|
|
1991
|
+
className: "h-ds-md w-[320px] justify-start gap-ds-03 rounded-ds-xl border border-dashed border-surface-border bg-surface-raised text-surface-fg-subtle hover:border-accent-7 hover:bg-accent-2 hover:text-accent-11",
|
|
1991
1992
|
children: [
|
|
1992
1993
|
/* @__PURE__ */ e(Me, { className: "h-ico-sm w-ico-sm" }),
|
|
1993
1994
|
"Add column"
|
|
@@ -2028,7 +2029,7 @@ export {
|
|
|
2028
2029
|
ss as d,
|
|
2029
2030
|
Ze as e,
|
|
2030
2031
|
Je as f,
|
|
2031
|
-
|
|
2032
|
+
Vs as g,
|
|
2032
2033
|
rt as h,
|
|
2033
2034
|
it as i,
|
|
2034
2035
|
ot as j,
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
3
|
-
const
|
|
4
|
-
p: ({ children:
|
|
2
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
3
|
+
const a = {
|
|
4
|
+
p: ({ children: e }) => /* @__PURE__ */ s("p", { className: "mb-ds-03 last:mb-0", children: e }),
|
|
5
5
|
code: ({
|
|
6
|
-
children:
|
|
6
|
+
children: e,
|
|
7
7
|
className: t
|
|
8
|
-
}) => (t == null ? void 0 : t.includes("language-")) ? /* @__PURE__ */
|
|
9
|
-
pre: ({ children:
|
|
10
|
-
ul: ({ children:
|
|
11
|
-
ol: ({ children:
|
|
12
|
-
li: ({ children:
|
|
13
|
-
strong: ({ children:
|
|
8
|
+
}) => (t == null ? void 0 : t.includes("language-")) ? /* @__PURE__ */ s("code", { className: t, children: e }) : /* @__PURE__ */ s("code", { className: "rounded bg-surface-raised-hover px-ds-02 py-ds-01 text-ds-md", children: e }),
|
|
9
|
+
pre: ({ children: e }) => /* @__PURE__ */ s("pre", { className: "mb-ds-03 overflow-x-auto rounded-ds-lg bg-surface-raised-hover p-ds-04 text-ds-md", children: e }),
|
|
10
|
+
ul: ({ children: e }) => /* @__PURE__ */ s("ul", { className: "mb-ds-03 list-disc pl-ds-05", children: e }),
|
|
11
|
+
ol: ({ children: e }) => /* @__PURE__ */ s("ol", { className: "mb-ds-03 list-decimal pl-ds-05", children: e }),
|
|
12
|
+
li: ({ children: e }) => /* @__PURE__ */ s("li", { className: "mb-ds-02", children: e }),
|
|
13
|
+
strong: ({ children: e }) => /* @__PURE__ */ s("strong", { className: "font-semibold", children: e }),
|
|
14
14
|
a: ({
|
|
15
|
-
href:
|
|
15
|
+
href: e,
|
|
16
16
|
children: t,
|
|
17
17
|
...o
|
|
18
18
|
}) => {
|
|
19
|
-
const
|
|
20
|
-
return /* @__PURE__ */
|
|
19
|
+
const r = e && /^(https?:\/\/|mailto:)/i.test(e) ? e : "#";
|
|
20
|
+
return /* @__PURE__ */ s(
|
|
21
21
|
"a",
|
|
22
22
|
{
|
|
23
|
-
href:
|
|
23
|
+
href: r,
|
|
24
24
|
target: "_blank",
|
|
25
25
|
rel: "noopener noreferrer",
|
|
26
26
|
className: "text-accent-11 underline hover:text-accent-12",
|
|
@@ -31,5 +31,5 @@ const l = {
|
|
|
31
31
|
}
|
|
32
32
|
};
|
|
33
33
|
export {
|
|
34
|
-
|
|
34
|
+
a as m
|
|
35
35
|
};
|