@devalok/shilp-sutra-karm 0.7.0 → 0.8.1

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 (58) hide show
  1. package/dist/admin/break/break-admin-skeleton.js +1 -1
  2. package/dist/admin/break/break-admin.js +2 -2
  3. package/dist/admin/break/break-balance.js +1 -1
  4. package/dist/admin/break/breaks.js +2 -2
  5. package/dist/admin/break/delete-break.js +4 -4
  6. package/dist/admin/break/edit-break-balance.js +4 -4
  7. package/dist/admin/break/edit-break.js +4 -4
  8. package/dist/admin/break/header.js +3 -3
  9. package/dist/admin/break/leave-request.js +5 -5
  10. package/dist/admin/dashboard/admin-dashboard.js +1 -1
  11. package/dist/admin/dashboard/associate-detail.js +4 -4
  12. package/dist/admin/dashboard/attendance-overview.js +2 -2
  13. package/dist/admin/dashboard/break-request.js +4 -4
  14. package/dist/admin/dashboard/calendar.js +3 -3
  15. package/dist/admin/dashboard/correction-list.js +3 -3
  16. package/dist/admin/dashboard/dashboard-header.js +5 -5
  17. package/dist/admin/dashboard/dashboard-skeleton.js +8 -8
  18. package/dist/admin/dashboard/leave-requests.js +3 -3
  19. package/dist/admin/dashboard/render-date.js +1 -1
  20. package/dist/admin/types.d.ts +6 -6
  21. package/dist/admin/types.d.ts.map +1 -1
  22. package/dist/board/board-column.d.ts.map +1 -1
  23. package/dist/board/board-column.js +18 -16
  24. package/dist/board/kanban-board.d.ts.map +1 -1
  25. package/dist/board/kanban-board.js +118 -119
  26. package/dist/board/task-card.d.ts.map +1 -1
  27. package/dist/board/task-card.js +113 -115
  28. package/dist/chat/chat-input.d.ts.map +1 -1
  29. package/dist/chat/chat-input.js +2 -1
  30. package/dist/chat/chat-panel.js +2 -2
  31. package/dist/chat/conversation-list.js +1 -1
  32. package/dist/chat/markdown-components.d.ts +4 -0
  33. package/dist/chat/markdown-components.d.ts.map +1 -1
  34. package/dist/chat/markdown-components.js +30 -12
  35. package/dist/chat/message-list.d.ts.map +1 -1
  36. package/dist/chat/message-list.js +29 -30
  37. package/dist/chat/streaming-text.js +9 -9
  38. package/dist/client/client-portal-header.js +2 -2
  39. package/dist/client/project-card.js +3 -3
  40. package/dist/dashboard/daily-brief.js +1 -1
  41. package/dist/index.d.ts +0 -1
  42. package/dist/index.d.ts.map +1 -1
  43. package/dist/index.js +78 -82
  44. package/dist/page-skeletons.js +2 -2
  45. package/dist/tasks/activity-tab.js +2 -2
  46. package/dist/tasks/conversation-tab.d.ts +2 -0
  47. package/dist/tasks/conversation-tab.d.ts.map +1 -1
  48. package/dist/tasks/conversation-tab.js +68 -57
  49. package/dist/tasks/files-tab.js +25 -25
  50. package/dist/tasks/review-tab.js +6 -6
  51. package/dist/tasks/subtasks-tab.js +4 -4
  52. package/dist/tasks/task-detail-panel.js +4 -4
  53. package/dist/tasks/task-properties.d.ts.map +1 -1
  54. package/dist/tasks/task-properties.js +66 -59
  55. package/dist/utils/use-composed-ref.d.ts +3 -0
  56. package/dist/utils/use-composed-ref.d.ts.map +1 -0
  57. package/dist/utils/use-composed-ref.js +12 -0
  58. package/package.json +73 -69
@@ -1,118 +1,129 @@
1
1
  "use client";
2
- import { jsxs as a, jsx as e } from "react/jsx-runtime";
2
+ import { jsxs as a, jsx as t } from "react/jsx-runtime";
3
3
  import * as m from "react";
4
- import { cn as g } from "@devalok/shilp-sutra/ui";
5
- import { Avatar as y, AvatarImage as v, AvatarFallback as w } from "@devalok/shilp-sutra/ui";
6
- import { EmptyState as T } from "@devalok/shilp-sutra/composed";
7
- import { IconMessageCircle as C, IconSend as A } from "@tabler/icons-react";
8
- import { getInitials as I } from "@devalok/shilp-sutra/composed";
9
- function E(t) {
10
- const n = new Date(t), u = (/* @__PURE__ */ new Date()).getTime() - n.getTime(), o = Math.floor(u / 6e4), s = Math.floor(o / 60), l = Math.floor(s / 24);
11
- return o < 1 ? "Just now" : o < 60 ? `${o}m ago` : s < 24 ? `${s}h ago` : l < 7 ? `${l}d ago` : n.toLocaleDateString("en-IN", {
4
+ import { cn as b } from "@devalok/shilp-sutra/ui/lib/utils";
5
+ import { Avatar as C, AvatarImage as T, AvatarFallback as E } from "@devalok/shilp-sutra/ui/avatar";
6
+ import { EmptyState as A } from "@devalok/shilp-sutra/composed/empty-state";
7
+ import { RichTextViewer as I, RichTextEditor as k } from "@devalok/shilp-sutra/composed/rich-text-editor";
8
+ import { IconMessageCircle as R, IconSend as L } from "@tabler/icons-react";
9
+ import { getInitials as M } from "@devalok/shilp-sutra/composed/lib/string-utils";
10
+ function S(r) {
11
+ const s = new Date(r), u = (/* @__PURE__ */ new Date()).getTime() - s.getTime(), o = Math.floor(u / 6e4), n = Math.floor(o / 60), l = Math.floor(n / 24);
12
+ return o < 1 ? "Just now" : o < 60 ? `${o}m ago` : n < 24 ? `${n}h ago` : l < 7 ? `${l}d ago` : s.toLocaleDateString("en-IN", {
12
13
  month: "short",
13
14
  day: "numeric",
14
15
  hour: "numeric",
15
16
  minute: "2-digit"
16
17
  });
17
18
  }
18
- function k(t) {
19
- return t.authorType === "INTERNAL" && t.internalAuthor ? t.internalAuthor : t.authorType === "CLIENT" && t.clientAuthor ? {
20
- id: t.clientAuthor.id,
21
- name: t.clientAuthor.name,
22
- email: t.clientAuthor.email,
19
+ function D(r) {
20
+ return r.authorType === "INTERNAL" && r.internalAuthor ? r.internalAuthor : r.authorType === "CLIENT" && r.clientAuthor ? {
21
+ id: r.clientAuthor.id,
22
+ name: r.clientAuthor.name,
23
+ email: r.clientAuthor.email,
23
24
  image: null
24
- } : { id: t.authorId, name: "Unknown", image: null };
25
+ } : { id: r.authorId, name: "Unknown", image: null };
25
26
  }
26
- function R(t) {
27
- return t.replace(/<[^>]*>/g, "");
27
+ function V(r) {
28
+ return r.replace(/<[^>]*>/g, "");
28
29
  }
29
- const L = m.forwardRef(
30
+ const j = m.forwardRef(
30
31
  function({
31
- comments: n,
32
- taskVisibility: x,
32
+ comments: s,
33
+ taskVisibility: p,
33
34
  onPostComment: u,
34
35
  className: o,
35
- clientMode: s = !1,
36
- renderEditor: l,
37
- renderViewer: h
38
- }, b) {
39
- const [d, p] = m.useState(""), c = m.useRef(null), N = () => {
40
- const r = d.trim();
41
- r.replace(/<[^>]*>/g, "").trim() && (u(r, s ? "CLIENT" : "INTERNAL"), p(""));
36
+ clientMode: n = !1,
37
+ richText: l = !1,
38
+ renderEditor: N,
39
+ renderViewer: y
40
+ }, w) {
41
+ const [d, h] = m.useState(""), c = m.useRef(null), x = N ?? (l ? (e) => /* @__PURE__ */ t(
42
+ k,
43
+ {
44
+ content: e.content,
45
+ onChange: e.onChange,
46
+ placeholder: e.placeholder,
47
+ editable: !0,
48
+ className: "min-h-[80px]"
49
+ }
50
+ ) : void 0), g = y ?? (l ? (e) => /* @__PURE__ */ t(I, { content: e.content, className: e.className }) : void 0), v = () => {
51
+ const e = d.trim();
52
+ e.replace(/<[^>]*>/g, "").trim() && (u(e, n ? "CLIENT" : "INTERNAL"), h(""));
42
53
  };
43
54
  return m.useEffect(() => {
44
55
  c.current && (c.current.scrollTop = c.current.scrollHeight);
45
- }, [n.length]), /* @__PURE__ */ a("div", { ref: b, className: g("flex flex-col", o), children: [
46
- n.length > 0 ? /* @__PURE__ */ e(
56
+ }, [s.length]), /* @__PURE__ */ a("div", { ref: w, className: b("flex flex-col", o), children: [
57
+ s.length > 0 ? /* @__PURE__ */ t(
47
58
  "div",
48
59
  {
49
60
  ref: c,
50
61
  className: "flex-1 space-y-ds-05 overflow-y-auto",
51
- children: n.map((r) => {
52
- const i = k(r), f = r.authorType === "CLIENT";
62
+ children: s.map((e) => {
63
+ const i = D(e), f = e.authorType === "CLIENT";
53
64
  return /* @__PURE__ */ a("div", { className: "flex gap-ds-03", children: [
54
- /* @__PURE__ */ a(y, { className: "h-ds-xs-plus w-ds-xs-plus shrink-0 mt-ds-01", children: [
55
- i.image && /* @__PURE__ */ e(v, { src: i.image, alt: i.name }),
56
- /* @__PURE__ */ e(
57
- w,
65
+ /* @__PURE__ */ a(C, { className: "h-ds-xs-plus w-ds-xs-plus shrink-0 mt-ds-01", children: [
66
+ i.image && /* @__PURE__ */ t(T, { src: i.image, alt: i.name }),
67
+ /* @__PURE__ */ t(
68
+ E,
58
69
  {
59
- className: g(
70
+ className: b(
60
71
  "text-ds-xs font-semibold",
61
72
  /* avatar initials — below scale, leave as-is */
62
73
  f ? "bg-warning-surface text-text-warning" : "bg-layer-03 text-text-on-color"
63
74
  ),
64
- children: I(i.name)
75
+ children: M(i.name)
65
76
  }
66
77
  )
67
78
  ] }),
68
79
  /* @__PURE__ */ a("div", { className: "flex-1 min-w-0", children: [
69
80
  /* @__PURE__ */ a("div", { className: "flex items-baseline gap-ds-03", children: [
70
- /* @__PURE__ */ e("span", { className: "text-ds-md font-medium text-text-primary", children: i.name }),
71
- s ? !f && /* @__PURE__ */ e("span", { className: "rounded bg-layer-03 px-ds-02 py-px text-ds-xs font-semibold uppercase tracking-wider text-text-on-color", children: "Team" }) : f && /* @__PURE__ */ e("span", { className: "rounded bg-warning-surface px-ds-02 py-px text-ds-xs font-semibold uppercase tracking-wider text-text-warning", children: "Client" }),
72
- /* @__PURE__ */ e("span", { className: "text-ds-sm text-text-placeholder", children: E(r.createdAt) })
81
+ /* @__PURE__ */ t("span", { className: "text-ds-md font-medium text-text-primary", children: i.name }),
82
+ n ? !f && /* @__PURE__ */ t("span", { className: "rounded bg-layer-03 px-ds-02 py-px text-ds-xs font-semibold uppercase tracking-wider text-text-on-color", children: "Team" }) : f && /* @__PURE__ */ t("span", { className: "rounded bg-warning-surface px-ds-02 py-px text-ds-xs font-semibold uppercase tracking-wider text-text-warning", children: "Client" }),
83
+ /* @__PURE__ */ t("span", { className: "text-ds-sm text-text-placeholder", children: S(e.createdAt) })
73
84
  ] }),
74
- /* @__PURE__ */ e("div", { className: "mt-ds-02", children: h ? h({
75
- content: r.content,
85
+ /* @__PURE__ */ t("div", { className: "mt-ds-02", children: g ? g({
86
+ content: e.content,
76
87
  className: "[&_.ProseMirror]:!min-h-0 [&_.ProseMirror]:!p-0"
77
- }) : /* @__PURE__ */ e("p", { className: "text-ds-md text-text-secondary whitespace-pre-wrap", children: R(r.content) }) })
88
+ }) : /* @__PURE__ */ t("p", { className: "text-ds-md text-text-secondary whitespace-pre-wrap", children: V(e.content) }) })
78
89
  ] })
79
- ] }, r.id);
90
+ ] }, e.id);
80
91
  })
81
92
  }
82
- ) : /* @__PURE__ */ e(
83
- T,
93
+ ) : /* @__PURE__ */ t(
94
+ A,
84
95
  {
85
- icon: /* @__PURE__ */ e(C, {}),
96
+ icon: /* @__PURE__ */ t(R, {}),
86
97
  title: "No comments yet",
87
98
  description: "Start a conversation about this task",
88
99
  compact: !0
89
100
  }
90
101
  ),
91
102
  /* @__PURE__ */ a("div", { className: "mt-ds-05 space-y-ds-03", children: [
92
- x === "EVERYONE" && !s && /* @__PURE__ */ e("p", { className: "text-ds-xs text-text-warning", children: "This task is visible to clients. Comments may be seen by external users." }),
93
- l ? l({
103
+ p === "EVERYONE" && !n && /* @__PURE__ */ t("p", { className: "text-ds-xs text-text-warning", children: "This task is visible to clients. Comments may be seen by external users." }),
104
+ x ? x({
94
105
  content: d,
95
- onChange: p,
106
+ onChange: h,
96
107
  placeholder: "Write a comment..."
97
- }) : /* @__PURE__ */ e(
108
+ }) : /* @__PURE__ */ t(
98
109
  "textarea",
99
110
  {
100
111
  value: d,
101
- onChange: (r) => p(r.target.value),
112
+ onChange: (e) => h(e.target.value),
102
113
  placeholder: "Write a comment...",
103
114
  rows: 3,
104
115
  className: "w-full resize-none rounded-ds-md border border-border bg-transparent px-ds-04 py-ds-03 text-ds-md text-text-primary placeholder:text-text-placeholder outline-none focus:border-border-subtle"
105
116
  }
106
117
  ),
107
- /* @__PURE__ */ e("div", { className: "flex justify-end", children: /* @__PURE__ */ a(
118
+ /* @__PURE__ */ t("div", { className: "flex justify-end", children: /* @__PURE__ */ a(
108
119
  "button",
109
120
  {
110
121
  type: "button",
111
- onClick: N,
122
+ onClick: v,
112
123
  disabled: !d.replace(/<[^>]*>/g, "").trim(),
113
124
  className: "inline-flex items-center gap-ds-02b rounded-ds-lg bg-interactive px-ds-04 py-ds-02b text-ds-sm font-semibold text-text-on-color transition-colors hover:bg-interactive-hover disabled:opacity-[0.38] disabled:cursor-not-allowed",
114
125
  children: [
115
- /* @__PURE__ */ e(A, { className: "h-ico-sm w-ico-sm", stroke: 2 }),
126
+ /* @__PURE__ */ t(L, { className: "h-ico-sm w-ico-sm", stroke: 2 }),
116
127
  "Comment"
117
128
  ]
118
129
  }
@@ -121,7 +132,7 @@ const L = m.forwardRef(
121
132
  ] });
122
133
  }
123
134
  );
124
- L.displayName = "ConversationTab";
135
+ j.displayName = "ConversationTab";
125
136
  export {
126
- L as ConversationTab
137
+ j as ConversationTab
127
138
  };
@@ -1,18 +1,18 @@
1
1
  "use client";
2
2
  import { jsxs as r, jsx as e } from "react/jsx-runtime";
3
3
  import * as d from "react";
4
- import { cn as u } from "@devalok/shilp-sutra/ui";
5
- import { Dialog as I, DialogTrigger as C, DialogContent as j, DialogHeader as T, DialogTitle as k, DialogDescription as z, DialogFooter as L, DialogClose as h } from "@devalok/shilp-sutra/ui";
6
- import { Button as f } from "@devalok/shilp-sutra/ui";
7
- import { EmptyState as R } from "@devalok/shilp-sutra/composed";
8
- import { IconUpload as S, IconDownload as O, IconTrash as U, IconPaperclip as B, IconFile as x, IconPhoto as P, IconFileText as A, IconFileCode as E, IconFileSpreadsheet as H, IconFileZip as Z } from "@tabler/icons-react";
9
- function _(l) {
10
- if (!l) return x;
11
- const s = l.toLowerCase();
4
+ import { cn as h } from "@devalok/shilp-sutra/ui/lib/utils";
5
+ import { Dialog as I, DialogTrigger as C, DialogContent as j, DialogHeader as T, DialogTitle as k, DialogDescription as z, DialogFooter as L, DialogClose as u } from "@devalok/shilp-sutra/ui/dialog";
6
+ import { Button as f } from "@devalok/shilp-sutra/ui/button";
7
+ import { EmptyState as R } from "@devalok/shilp-sutra/composed/empty-state";
8
+ import { IconUpload as S, IconDownload as U, IconTrash as O, IconPaperclip as B, IconFile as x, IconPhoto as P, IconFileText as A, IconFileCode as E, IconFileSpreadsheet as H, IconFileZip as Z } from "@tabler/icons-react";
9
+ function _(n) {
10
+ if (!n) return x;
11
+ const s = n.toLowerCase();
12
12
  return ["jpg", "jpeg", "png", "gif", "svg", "webp", "bmp"].includes(s) ? P : ["pdf", "doc", "docx", "txt", "rtf"].includes(s) ? A : ["js", "ts", "jsx", "tsx", "py", "rb", "go", "rs", "html", "css", "json"].includes(s) ? E : ["xls", "xlsx", "csv"].includes(s) ? H : ["zip", "tar", "gz", "rar", "7z"].includes(s) ? Z : x;
13
13
  }
14
- function q(l) {
15
- return new Date(l).toLocaleDateString("en-IN", {
14
+ function q(n) {
15
+ return new Date(n).toLocaleDateString("en-IN", {
16
16
  month: "short",
17
17
  day: "numeric",
18
18
  year: "numeric"
@@ -28,20 +28,20 @@ const G = d.forwardRef(
28
28
  readOnly: p = !1
29
29
  }, b) {
30
30
  const o = d.useRef(null), [y, a] = d.useState(!1), D = (t) => {
31
- var n;
32
- const i = (n = t.target.files) == null ? void 0 : n[0];
33
- i && c(i), o.current && (o.current.value = "");
31
+ var i;
32
+ const l = (i = t.target.files) == null ? void 0 : i[0];
33
+ l && c(l), o.current && (o.current.value = "");
34
34
  }, N = (t) => {
35
- var n;
35
+ var i;
36
36
  t.preventDefault(), a(!1);
37
- const i = (n = t.dataTransfer.files) == null ? void 0 : n[0];
38
- i && c(i);
37
+ const l = (i = t.dataTransfer.files) == null ? void 0 : i[0];
38
+ l && c(l);
39
39
  }, w = (t) => {
40
40
  t.preventDefault(), a(!0);
41
41
  }, F = () => {
42
42
  a(!1);
43
43
  };
44
- return /* @__PURE__ */ r("div", { ref: b, className: u("flex flex-col", v), children: [
44
+ return /* @__PURE__ */ r("div", { ref: b, className: h("flex flex-col", v), children: [
45
45
  !p && /* @__PURE__ */ r(
46
46
  "div",
47
47
  {
@@ -50,7 +50,7 @@ const G = d.forwardRef(
50
50
  onDrop: N,
51
51
  onDragOver: w,
52
52
  onDragLeave: F,
53
- className: u(
53
+ className: h(
54
54
  "rounded-ds-lg border-2 border-dashed transition-colors",
55
55
  y ? "border-interactive bg-interactive/5" : "border-border"
56
56
  ),
@@ -96,14 +96,14 @@ const G = d.forwardRef(
96
96
  }
97
97
  ),
98
98
  s.length > 0 ? /* @__PURE__ */ e("div", { className: "mt-ds-05 space-y-ds-02", children: s.map((t) => {
99
- const i = _(t.fileType);
99
+ const l = _(t.fileType);
100
100
  return /* @__PURE__ */ r(
101
101
  "div",
102
102
  {
103
103
  className: "group flex items-center gap-ds-04 rounded-ds-lg px-ds-03 py-ds-03 transition-colors hover:bg-field",
104
104
  children: [
105
105
  /* @__PURE__ */ e("div", { className: "flex h-ds-sm w-ds-sm shrink-0 items-center justify-center rounded-ds-lg bg-layer-02", children: /* @__PURE__ */ e(
106
- i,
106
+ l,
107
107
  {
108
108
  className: "h-ico-sm w-ico-sm text-text-tertiary",
109
109
  stroke: 1.5
@@ -121,12 +121,12 @@ const G = d.forwardRef(
121
121
  t.downloadUrl && /* @__PURE__ */ e(
122
122
  "a",
123
123
  {
124
- href: t.downloadUrl,
124
+ href: /^https?:\/\//.test(t.downloadUrl) ? t.downloadUrl : "#",
125
125
  target: "_blank",
126
126
  rel: "noopener noreferrer",
127
127
  className: "inline-flex h-ds-xs-plus w-ds-xs-plus items-center justify-center rounded-ds-md transition-colors hover:bg-layer-02",
128
128
  title: "Download",
129
- children: /* @__PURE__ */ e(O, { className: "h-ico-sm w-ico-sm text-text-tertiary" })
129
+ children: /* @__PURE__ */ e(U, { className: "h-ico-sm w-ico-sm text-text-tertiary" })
130
130
  }
131
131
  ),
132
132
  !p && /* @__PURE__ */ r(I, { children: [
@@ -136,7 +136,7 @@ const G = d.forwardRef(
136
136
  type: "button",
137
137
  className: "inline-flex h-ds-xs-plus w-ds-xs-plus items-center justify-center rounded-ds-md transition-colors hover:bg-error-surface",
138
138
  title: "Delete",
139
- children: /* @__PURE__ */ e(U, { className: "h-ico-sm w-ico-sm text-text-error" })
139
+ children: /* @__PURE__ */ e(O, { className: "h-ico-sm w-ico-sm text-text-error" })
140
140
  }
141
141
  ) }),
142
142
  /* @__PURE__ */ r(j, { children: [
@@ -149,8 +149,8 @@ const G = d.forwardRef(
149
149
  ] })
150
150
  ] }),
151
151
  /* @__PURE__ */ r(L, { children: [
152
- /* @__PURE__ */ e(h, { asChild: !0, children: /* @__PURE__ */ e(f, { variant: "outline", size: "sm", children: "Cancel" }) }),
153
- /* @__PURE__ */ e(h, { asChild: !0, children: /* @__PURE__ */ e(
152
+ /* @__PURE__ */ e(u, { asChild: !0, children: /* @__PURE__ */ e(f, { variant: "outline", size: "sm", children: "Cancel" }) }),
153
+ /* @__PURE__ */ e(u, { asChild: !0, children: /* @__PURE__ */ e(
154
154
  f,
155
155
  {
156
156
  variant: "solid",
@@ -1,13 +1,13 @@
1
1
  "use client";
2
2
  import { jsxs as a, jsx as t } from "react/jsx-runtime";
3
3
  import * as d from "react";
4
- import { cn as p } from "@devalok/shilp-sutra/ui";
5
- import { Avatar as R, AvatarImage as v, AvatarFallback as k } from "@devalok/shilp-sutra/ui";
6
- import { Badge as I } from "@devalok/shilp-sutra/ui";
7
- import { EmptyState as S } from "@devalok/shilp-sutra/composed";
8
- import { MemberPicker as A } from "@devalok/shilp-sutra/composed";
4
+ import { cn as p } from "@devalok/shilp-sutra/ui/lib/utils";
5
+ import { Avatar as R, AvatarImage as v, AvatarFallback as k } from "@devalok/shilp-sutra/ui/avatar";
6
+ import { Badge as I } from "@devalok/shilp-sutra/ui/badge";
7
+ import { EmptyState as S } from "@devalok/shilp-sutra/composed/empty-state";
8
+ import { MemberPicker as A } from "@devalok/shilp-sutra/composed/member-picker";
9
9
  import { IconCheck as C, IconMessage as P, IconX as D, IconGitPullRequest as T, IconPlus as M } from "@tabler/icons-react";
10
- import { getInitials as q } from "@devalok/shilp-sutra/composed";
10
+ import { getInitials as q } from "@devalok/shilp-sutra/composed/lib/string-utils";
11
11
  import { REVIEW_STATUS_MAP as O } from "./task-constants.js";
12
12
  function _(l) {
13
13
  return new Date(l).toLocaleDateString("en-IN", {
@@ -1,12 +1,12 @@
1
1
  "use client";
2
2
  import { jsxs as r, jsx as t } from "react/jsx-runtime";
3
3
  import * as l from "react";
4
- import { cn as a } from "@devalok/shilp-sutra/ui";
5
- import { Avatar as D, AvatarImage as E, AvatarFallback as P } from "@devalok/shilp-sutra/ui";
4
+ import { cn as a } from "@devalok/shilp-sutra/ui/lib/utils";
5
+ import { Avatar as D, AvatarImage as E, AvatarFallback as P } from "@devalok/shilp-sutra/ui/avatar";
6
6
  import { Progress as K } from "@devalok/shilp-sutra/ui";
7
- import { EmptyState as j } from "@devalok/shilp-sutra/composed";
7
+ import { EmptyState as j } from "@devalok/shilp-sutra/composed/empty-state";
8
8
  import { IconSquareCheck as q, IconSquare as B, IconListCheck as L, IconPlus as O } from "@tabler/icons-react";
9
- import { getInitials as S } from "@devalok/shilp-sutra/composed";
9
+ import { getInitials as S } from "@devalok/shilp-sutra/composed/lib/string-utils";
10
10
  import { PRIORITY_DOT_COLORS as _ } from "./task-constants.js";
11
11
  const C = l.forwardRef(
12
12
  function({
@@ -1,10 +1,10 @@
1
1
  "use client";
2
2
  import { jsx as r, jsxs as a, Fragment as ie } from "react/jsx-runtime";
3
3
  import * as c from "react";
4
- import { cn as _ } from "@devalok/shilp-sutra/ui";
5
- import { Sheet as re, SheetContent as se, SheetTitle as le } from "@devalok/shilp-sutra/ui";
6
- import { VisuallyHidden as ae } from "@devalok/shilp-sutra/ui";
7
- import { Skeleton as t } from "@devalok/shilp-sutra/ui";
4
+ import { cn as _ } from "@devalok/shilp-sutra/ui/lib/utils";
5
+ import { Sheet as re, SheetContent as se, SheetTitle as le } from "@devalok/shilp-sutra/ui/sheet";
6
+ import { VisuallyHidden as ae } from "@devalok/shilp-sutra/ui/visually-hidden";
7
+ import { Skeleton as t } from "@devalok/shilp-sutra/ui/skeleton";
8
8
  import { Tabs as ce, TabsList as te, TabsTrigger as de } from "@devalok/shilp-sutra/ui";
9
9
  import { TaskProperties as fe } from "./task-properties.js";
10
10
  import { SubtasksTab as me } from "./subtasks-tab.js";
@@ -1 +1 @@
1
- {"version":3,"file":"task-properties.d.ts","sourceRoot":"","sources":["../../src/tasks/task-properties.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAiC9B,MAAM,WAAW,MAAM;IACrB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CACtB;AAED,MAAM,WAAW,MAAM;IACrB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB;AAED,UAAU,QAAQ;IAChB,EAAE,EAAE,MAAM,CAAA;IACV,QAAQ,EAAE,MAAM,CAAA;IAChB,MAAM,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAA;IACpC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAA;IACtB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;IACpB,SAAS,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,EAAE,CAAA;IAC7B,QAAQ,EAAE,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,QAAQ,CAAA;IAC9C,OAAO,EAAE,MAAM,GAAG,IAAI,CAAA;IACtB,MAAM,EAAE,MAAM,EAAE,CAAA;IAChB,UAAU,EAAE,UAAU,GAAG,UAAU,CAAA;CACpC;AAED,UAAU,mBAAmB;IAC3B,IAAI,EAAE,QAAQ,CAAA;IACd,OAAO,EAAE,MAAM,EAAE,CAAA;IACjB,OAAO,EAAE,MAAM,EAAE,CAAA;IACjB,QAAQ,EAAE,CA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