@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
|
@@ -1,60 +1,60 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import * as f from "react";
|
|
3
3
|
import { useEffect as h } from "react";
|
|
4
|
-
import { jsxs as s, jsx as
|
|
4
|
+
import { jsxs as s, jsx as r } from "react/jsx-runtime";
|
|
5
5
|
import { cn as p } from "@devalok/shilp-sutra/ui/lib/utils";
|
|
6
|
-
import { Avatar as b, AvatarImage as x, AvatarFallback as
|
|
7
|
-
import { Badge as
|
|
6
|
+
import { Avatar as b, AvatarImage as x, AvatarFallback as v } from "@devalok/shilp-sutra/ui/avatar";
|
|
7
|
+
import { Badge as g } from "@devalok/shilp-sutra/ui/badge";
|
|
8
8
|
import { Progress as y } from "@devalok/shilp-sutra/ui/progress";
|
|
9
9
|
function N({ accentCss: c }) {
|
|
10
10
|
return h(() => {
|
|
11
11
|
if (!c) return;
|
|
12
|
-
const a = document.documentElement, i = c.split(";").map((e) => e.trim()).filter(Boolean),
|
|
12
|
+
const a = document.documentElement, i = c.split(";").map((e) => e.trim()).filter(Boolean), t = [];
|
|
13
13
|
for (const e of i) {
|
|
14
14
|
const d = e.indexOf(":");
|
|
15
15
|
if (d === -1) continue;
|
|
16
16
|
const n = e.slice(0, d).trim(), o = e.slice(d + 1).trim();
|
|
17
|
-
n && o && (a.style.setProperty(n, o),
|
|
17
|
+
n && o && (a.style.setProperty(n, o), t.push(n));
|
|
18
18
|
}
|
|
19
19
|
return () => {
|
|
20
|
-
for (const e of
|
|
20
|
+
for (const e of t)
|
|
21
21
|
a.style.removeProperty(e);
|
|
22
22
|
};
|
|
23
23
|
}, [c]), null;
|
|
24
24
|
}
|
|
25
25
|
N.displayName = "AccentProvider";
|
|
26
26
|
const j = f.forwardRef(
|
|
27
|
-
({ className: c, orgName: a, orgLogo: i, userName:
|
|
28
|
-
const l = a.split(" ").map((m) => m[0]).join("").slice(0, 2).toUpperCase(), u =
|
|
27
|
+
({ className: c, orgName: a, orgLogo: i, userName: t, userAvatar: e, children: d, ...n }, o) => {
|
|
28
|
+
const l = a.split(" ").map((m) => m[0]).join("").slice(0, 2).toUpperCase(), u = t.split(" ").map((m) => m[0]).join("").slice(0, 2).toUpperCase();
|
|
29
29
|
return /* @__PURE__ */ s(
|
|
30
30
|
"header",
|
|
31
31
|
{
|
|
32
32
|
ref: o,
|
|
33
33
|
className: p(
|
|
34
|
-
"flex h-ds-lg items-center justify-between border-b border-surface-border bg-surface-
|
|
34
|
+
"flex h-ds-lg items-center justify-between border-b border-surface-border bg-surface-sunken px-ds-06",
|
|
35
35
|
c
|
|
36
36
|
),
|
|
37
37
|
...n,
|
|
38
38
|
children: [
|
|
39
39
|
/* @__PURE__ */ s("div", { className: "flex items-center gap-ds-04", children: [
|
|
40
|
-
i ? /* @__PURE__ */
|
|
40
|
+
i ? /* @__PURE__ */ r(
|
|
41
41
|
"img",
|
|
42
42
|
{
|
|
43
43
|
src: i,
|
|
44
44
|
alt: a,
|
|
45
45
|
className: "h-ds-sm w-ds-sm rounded-ds-md object-cover"
|
|
46
46
|
}
|
|
47
|
-
) : /* @__PURE__ */
|
|
48
|
-
/* @__PURE__ */
|
|
47
|
+
) : /* @__PURE__ */ r("div", { className: "flex h-ds-sm w-ds-sm items-center justify-center rounded-ds-md bg-accent-9 text-ds-sm font-semibold text-accent-fg", children: l }),
|
|
48
|
+
/* @__PURE__ */ r("span", { className: "font-display text-ds-base font-semibold text-surface-fg", children: a })
|
|
49
49
|
] }),
|
|
50
50
|
/* @__PURE__ */ s("div", { className: "flex items-center gap-ds-04", children: [
|
|
51
51
|
d,
|
|
52
52
|
/* @__PURE__ */ s("div", { className: "flex items-center gap-ds-03", children: [
|
|
53
53
|
/* @__PURE__ */ s(b, { className: "h-ds-sm w-ds-sm", children: [
|
|
54
|
-
e && /* @__PURE__ */
|
|
55
|
-
/* @__PURE__ */
|
|
54
|
+
e && /* @__PURE__ */ r(x, { src: e, alt: t }),
|
|
55
|
+
/* @__PURE__ */ r(v, { className: "bg-accent-2 text-ds-sm font-medium text-accent-11", children: u })
|
|
56
56
|
] }),
|
|
57
|
-
/* @__PURE__ */
|
|
57
|
+
/* @__PURE__ */ r("span", { className: "hidden text-ds-md font-medium text-surface-fg sm:inline", children: t })
|
|
58
58
|
] })
|
|
59
59
|
] })
|
|
60
60
|
]
|
|
@@ -63,16 +63,16 @@ const j = f.forwardRef(
|
|
|
63
63
|
}
|
|
64
64
|
);
|
|
65
65
|
j.displayName = "ClientPortalHeader";
|
|
66
|
-
const
|
|
66
|
+
const P = {
|
|
67
67
|
active: "success",
|
|
68
68
|
completed: "info",
|
|
69
69
|
paused: "warning"
|
|
70
|
-
},
|
|
70
|
+
}, w = f.forwardRef(
|
|
71
71
|
({
|
|
72
72
|
className: c,
|
|
73
73
|
name: a,
|
|
74
74
|
description: i,
|
|
75
|
-
status:
|
|
75
|
+
status: t,
|
|
76
76
|
taskCount: e = 0,
|
|
77
77
|
completedTasks: d = 0,
|
|
78
78
|
...n
|
|
@@ -83,16 +83,16 @@ const w = {
|
|
|
83
83
|
{
|
|
84
84
|
ref: o,
|
|
85
85
|
className: p(
|
|
86
|
-
"group cursor-pointer rounded-ds-lg border border-surface-border bg-surface-
|
|
86
|
+
"group cursor-pointer rounded-ds-lg border border-surface-border bg-surface-raised p-ds-05b shadow-raised transition-all duration-200 hover:shadow-raised-hover hover:scale-[1.01]",
|
|
87
87
|
c
|
|
88
88
|
),
|
|
89
89
|
...n,
|
|
90
90
|
children: [
|
|
91
91
|
/* @__PURE__ */ s("div", { className: "mb-ds-04 flex items-start justify-between", children: [
|
|
92
|
-
/* @__PURE__ */
|
|
93
|
-
/* @__PURE__ */
|
|
92
|
+
/* @__PURE__ */ r("h3", { className: "font-display text-ds-base font-semibold text-surface-fg", children: a }),
|
|
93
|
+
/* @__PURE__ */ r(g, { color: P[t], size: "sm", children: t })
|
|
94
94
|
] }),
|
|
95
|
-
i && /* @__PURE__ */
|
|
95
|
+
i && /* @__PURE__ */ r("p", { className: "mb-ds-05 line-clamp-2 text-ds-md text-surface-fg-muted", children: i }),
|
|
96
96
|
/* @__PURE__ */ s("div", { className: "space-y-ds-03", children: [
|
|
97
97
|
/* @__PURE__ */ s("div", { className: "flex items-center justify-between text-ds-sm text-surface-fg-subtle", children: [
|
|
98
98
|
/* @__PURE__ */ s("span", { children: [
|
|
@@ -106,16 +106,16 @@ const w = {
|
|
|
106
106
|
"%"
|
|
107
107
|
] })
|
|
108
108
|
] }),
|
|
109
|
-
/* @__PURE__ */
|
|
109
|
+
/* @__PURE__ */ r(y, { value: l, className: "h-ds-02b", "aria-label": "Project progress" })
|
|
110
110
|
] })
|
|
111
111
|
]
|
|
112
112
|
}
|
|
113
113
|
);
|
|
114
114
|
}
|
|
115
115
|
);
|
|
116
|
-
|
|
116
|
+
w.displayName = "ProjectCard";
|
|
117
117
|
export {
|
|
118
118
|
N as A,
|
|
119
119
|
j as C,
|
|
120
|
-
P
|
|
120
|
+
w as P
|
|
121
121
|
};
|