@devalok/shilp-sutra-karm 0.8.2 → 0.10.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.
Files changed (98) hide show
  1. package/dist/_chunks/chat-panel.js +376 -0
  2. package/dist/_chunks/daily-brief.js +177 -0
  3. package/dist/_chunks/kanban-board.js +1984 -0
  4. package/dist/_chunks/project-card.js +121 -0
  5. package/dist/_chunks/render-adjustment-type.js +3596 -0
  6. package/dist/_chunks/task-detail-panel.js +1319 -0
  7. package/dist/_chunks/use-composed-ref.js +12 -0
  8. package/dist/_chunks/vendor.js +11491 -0
  9. package/dist/admin/index.js +37 -60
  10. package/dist/board/board-column.d.ts +2 -13
  11. package/dist/board/board-column.d.ts.map +1 -1
  12. package/dist/board/board-constants.d.ts +17 -0
  13. package/dist/board/board-constants.d.ts.map +1 -0
  14. package/dist/board/board-context.d.ts +65 -0
  15. package/dist/board/board-context.d.ts.map +1 -0
  16. package/dist/board/board-toolbar.d.ts +5 -0
  17. package/dist/board/board-toolbar.d.ts.map +1 -0
  18. package/dist/board/board-types.d.ts +48 -0
  19. package/dist/board/board-types.d.ts.map +1 -0
  20. package/dist/board/bulk-action-bar.d.ts +5 -0
  21. package/dist/board/bulk-action-bar.d.ts.map +1 -0
  22. package/dist/board/column-empty.d.ts +14 -0
  23. package/dist/board/column-empty.d.ts.map +1 -0
  24. package/dist/board/column-header.d.ts +10 -0
  25. package/dist/board/column-header.d.ts.map +1 -0
  26. package/dist/board/index.d.ts +13 -3
  27. package/dist/board/index.d.ts.map +1 -1
  28. package/dist/board/index.js +20 -7
  29. package/dist/board/kanban-board.d.ts +4 -13
  30. package/dist/board/kanban-board.d.ts.map +1 -1
  31. package/dist/board/task-card.d.ts +11 -16
  32. package/dist/board/task-card.d.ts.map +1 -1
  33. package/dist/board/task-context-menu.d.ts +10 -0
  34. package/dist/board/task-context-menu.d.ts.map +1 -0
  35. package/dist/board/use-board-filters.d.ts +3 -0
  36. package/dist/board/use-board-filters.d.ts.map +1 -0
  37. package/dist/board/use-board-keyboard.d.ts +14 -0
  38. package/dist/board/use-board-keyboard.d.ts.map +1 -0
  39. package/dist/chat/index.js +6 -10
  40. package/dist/client/index.js +4 -6
  41. package/dist/dashboard/index.js +3 -4
  42. package/dist/index.d.ts +1 -1
  43. package/dist/index.d.ts.map +1 -1
  44. package/dist/index.js +200 -104
  45. package/dist/tasks/index.js +8 -14
  46. package/package.json +78 -80
  47. package/dist/admin/adjustments/approved-adjustments.js +0 -43
  48. package/dist/admin/break/break-admin-skeleton.js +0 -59
  49. package/dist/admin/break/break-admin.js +0 -373
  50. package/dist/admin/break/break-balance.js +0 -42
  51. package/dist/admin/break/breaks.js +0 -91
  52. package/dist/admin/break/delete-break.js +0 -55
  53. package/dist/admin/break/edit-break-balance.js +0 -113
  54. package/dist/admin/break/edit-break.js +0 -453
  55. package/dist/admin/break/header.js +0 -231
  56. package/dist/admin/break/leave-request.js +0 -162
  57. package/dist/admin/break/use-break-date-picker.js +0 -43
  58. package/dist/admin/dashboard/admin-dashboard.js +0 -337
  59. package/dist/admin/dashboard/associate-detail.js +0 -259
  60. package/dist/admin/dashboard/attendance-overview.js +0 -136
  61. package/dist/admin/dashboard/break-request.js +0 -176
  62. package/dist/admin/dashboard/calendar.js +0 -141
  63. package/dist/admin/dashboard/correction-list.js +0 -102
  64. package/dist/admin/dashboard/dashboard-header.js +0 -155
  65. package/dist/admin/dashboard/dashboard-skeleton.js +0 -109
  66. package/dist/admin/dashboard/leave-requests.js +0 -201
  67. package/dist/admin/dashboard/render-date.js +0 -144
  68. package/dist/admin/dashboard/use-calendar-navigation.js +0 -169
  69. package/dist/admin/dashboard/use-leave-request-interaction.js +0 -34
  70. package/dist/admin/utils/date-range-utils.js +0 -37
  71. package/dist/admin/utils/date-utils.js +0 -119
  72. package/dist/admin/utils/emoji-utils.js +0 -17
  73. package/dist/admin/utils/render-adjustment-type.js +0 -20
  74. package/dist/admin/utils/render-status.js +0 -22
  75. package/dist/board/board-column.js +0 -236
  76. package/dist/board/kanban-board.js +0 -218
  77. package/dist/board/task-card.js +0 -168
  78. package/dist/chat/chat-input.js +0 -54
  79. package/dist/chat/chat-panel.js +0 -151
  80. package/dist/chat/conversation-list.js +0 -99
  81. package/dist/chat/markdown-components.js +0 -35
  82. package/dist/chat/message-list.js +0 -59
  83. package/dist/chat/streaming-text.js +0 -17
  84. package/dist/client/accent-provider.js +0 -22
  85. package/dist/client/client-portal-header.js +0 -48
  86. package/dist/client/project-card.js +0 -60
  87. package/dist/dashboard/attendance-cta.js +0 -115
  88. package/dist/dashboard/daily-brief.js +0 -68
  89. package/dist/page-skeletons.js +0 -130
  90. package/dist/tasks/activity-tab.js +0 -185
  91. package/dist/tasks/conversation-tab.js +0 -138
  92. package/dist/tasks/files-tab.js +0 -186
  93. package/dist/tasks/review-tab.js +0 -170
  94. package/dist/tasks/subtasks-tab.js +0 -154
  95. package/dist/tasks/task-constants.js +0 -22
  96. package/dist/tasks/task-detail-panel.js +0 -210
  97. package/dist/tasks/task-properties.js +0 -324
  98. package/dist/utils/use-composed-ref.js +0 -12
package/dist/index.js CHANGED
@@ -1,107 +1,203 @@
1
1
  "use client";
2
- import { BandwidthSkeleton as o, DevsabhaSkeleton as t } from "./page-skeletons.js";
3
- import { KanbanBoard as m } from "./board/kanban-board.js";
4
- import { BoardColumn as p } from "./board/board-column.js";
5
- import { TaskCard as n, TaskCardOverlay as s } from "./board/task-card.js";
6
- import { TaskDetailPanel as i } from "./tasks/task-detail-panel.js";
7
- import { TaskProperties as k } from "./tasks/task-properties.js";
8
- import { ActivityTab as A } from "./tasks/activity-tab.js";
9
- import { ConversationTab as B } from "./tasks/conversation-tab.js";
10
- import { FilesTab as S } from "./tasks/files-tab.js";
11
- import { ReviewTab as b } from "./tasks/review-tab.js";
12
- import { SubtasksTab as u } from "./tasks/subtasks-tab.js";
13
- import { ChatPanel as h } from "./chat/chat-panel.js";
14
- import { ChatInput as j } from "./chat/chat-input.js";
15
- import { MessageList as E } from "./chat/message-list.js";
16
- import { ConversationList as O } from "./chat/conversation-list.js";
17
- import { StreamingText as q } from "./chat/streaming-text.js";
18
- import { AttendanceCTA as H } from "./dashboard/attendance-cta.js";
19
- import { DailyBrief as W } from "./dashboard/daily-brief.js";
20
- import { AccentProvider as F } from "./client/accent-provider.js";
21
- import { ClientPortalHeader as z } from "./client/client-portal-header.js";
22
- import { ProjectCard as J } from "./client/project-card.js";
23
- import { AdjustmentType as Q, renderAdjustmentType as U } from "./admin/utils/render-adjustment-type.js";
24
- import { renderStatus as X } from "./admin/utils/render-status.js";
25
- import { formatDate as Z, formatDateIST as _, formatDateWithWeekday as $, formatOptionalDate as ee, formatTimeIST as re, getDaySuffix as oe, getEndOfDay as te, getMonthDays as ae, getStartOfDay as me, getWeekDays as fe, isSameDay as pe } from "./admin/utils/date-utils.js";
26
- import { removeAllEmojis as ne, removeEmojiAtStart as se } from "./admin/utils/emoji-utils.js";
27
- import { AdminDashboard as ie } from "./admin/dashboard/admin-dashboard.js";
28
- import { DashboardSkeleton as ke } from "./admin/dashboard/dashboard-skeleton.js";
29
- import { ApprovedAdjustments as Ae } from "./admin/adjustments/approved-adjustments.js";
30
- import { AssociateDetail as Be } from "./admin/dashboard/associate-detail.js";
31
- import { AttendanceOverview as Se } from "./admin/dashboard/attendance-overview.js";
32
- import { BreakAdmin as be } from "./admin/break/break-admin.js";
33
- import { BreakAdminHeader as ue } from "./admin/break/header.js";
34
- import { BreakAdminSkeleton as he } from "./admin/break/break-admin-skeleton.js";
35
- import { BreakBalance as je } from "./admin/break/break-balance.js";
36
- import { BreakRequestCard as Ee } from "./admin/dashboard/break-request.js";
37
- import { Breaks as Oe } from "./admin/break/breaks.js";
38
- import { Calendar as qe } from "./admin/dashboard/calendar.js";
39
- import { CorrectionList as He } from "./admin/dashboard/correction-list.js";
40
- import { DashboardHeader as We } from "./admin/dashboard/dashboard-header.js";
41
- import { DeleteBreak as Fe } from "./admin/break/delete-break.js";
42
- import { EditBreak as ze } from "./admin/break/edit-break.js";
43
- import { EditBreakBalance as Je } from "./admin/break/edit-break-balance.js";
44
- import { LeaveRequest as Qe } from "./admin/break/leave-request.js";
45
- import { LeaveRequests as Ve } from "./admin/dashboard/leave-requests.js";
46
- import { RenderDate as Ye } from "./admin/dashboard/render-date.js";
2
+ import { jsxs as d, jsx as a } from "react/jsx-runtime";
3
+ import * as i from "react";
4
+ import { Skeleton as s } from "@devalok/shilp-sutra/ui/skeleton";
5
+ import { cn as e } from "@devalok/shilp-sutra/ui/lib/utils";
6
+ import { B as u, a as w, b as y, c as k, e as A, f as B, K as C, T as D, h as T, i as S, j, k as _, u as R, l as $ } from "./_chunks/kanban-board.js";
7
+ import { A as E, C as L, F as O, R as H, S as q, T as M, a as F } from "./_chunks/task-detail-panel.js";
8
+ import { C as W, a as z, b as G, M as I, S as J } from "./_chunks/chat-panel.js";
9
+ import { A as U, D as V } from "./_chunks/daily-brief.js";
10
+ import { A as Y, C as Z, P as aa } from "./_chunks/project-card.js";
11
+ import { A as sa, a as ra, D as da, b as la, c as oa, d as ca, B as ia, e as ma, f as na, g as ta, h as fa, i as ha, C as pa, j as ga, k as xa, l as ba, E as Na, m as va, L as ua, n as wa, R as ya, o as ka, p as Aa, q as Ba, r as Ca, s as Da, t as Ta, u as Sa, v as ja, w as _a, x as Ra, y as $a, z as Pa, F as Ea, G as La, H as Oa } from "./_chunks/render-adjustment-type.js";
12
+ const r = "bg-field", f = i.forwardRef(
13
+ function(n, c) {
14
+ return /* @__PURE__ */ d("div", { ref: c, className: "flex flex-col gap-ds-06", children: [
15
+ /* @__PURE__ */ d("div", { className: "flex flex-col gap-ds-03", children: [
16
+ /* @__PURE__ */ a(s, { className: e("h-6 w-32", r) }),
17
+ /* @__PURE__ */ a(s, { className: e("h-ds-04 w-56", r) })
18
+ ] }),
19
+ /* @__PURE__ */ d("div", { className: "grid grid-cols-1 gap-ds-05 lg:grid-cols-3", children: [
20
+ /* @__PURE__ */ a("div", { className: "lg:col-span-2", children: /* @__PURE__ */ d("div", { className: "flex flex-col gap-ds-05 rounded-ds-xl border border-border bg-layer-01 p-ds-06", children: [
21
+ /* @__PURE__ */ a(s, { className: e("h-5 w-40", r) }),
22
+ /* @__PURE__ */ a("div", { className: "flex flex-col gap-ds-04", children: Array.from({ length: 4 }).map((o, l) => /* @__PURE__ */ d("div", { className: "flex items-center gap-ds-04", children: [
23
+ /* @__PURE__ */ a(s, { className: e("h-ico-sm w-ico-sm rounded", r) }),
24
+ /* @__PURE__ */ a(s, { className: e("h-ds-04 flex-1", r) }),
25
+ /* @__PURE__ */ a(s, { className: e("h-5 w-16 rounded-ds-full", r) })
26
+ ] }, `ds-main-${l}`)) })
27
+ ] }) }),
28
+ /* @__PURE__ */ d("div", { className: "flex flex-col gap-ds-05 rounded-ds-xl border border-border bg-layer-01 p-ds-06", children: [
29
+ /* @__PURE__ */ a(s, { className: e("h-5 w-28", r) }),
30
+ /* @__PURE__ */ a("div", { className: "flex flex-col gap-ds-04", children: Array.from({ length: 3 }).map((o, l) => /* @__PURE__ */ d("div", { className: "flex items-center gap-ds-04", children: [
31
+ /* @__PURE__ */ a(s, { className: e("h-ds-sm w-ds-sm rounded-ds-full", r) }),
32
+ /* @__PURE__ */ d("div", { className: "flex flex-1 flex-col gap-ds-02", children: [
33
+ /* @__PURE__ */ a(s, { className: e("h-3 w-24", r) }),
34
+ /* @__PURE__ */ a(s, { className: e("h-ds-03 w-16", r) })
35
+ ] })
36
+ ] }, `ds-side-${l}`)) })
37
+ ] }),
38
+ /* @__PURE__ */ a("div", { className: "lg:col-span-3", children: /* @__PURE__ */ d("div", { className: "flex flex-col gap-ds-05 rounded-ds-xl border border-border bg-layer-01 p-ds-06", children: [
39
+ /* @__PURE__ */ d("div", { className: "flex items-center justify-between", children: [
40
+ /* @__PURE__ */ a(s, { className: e("h-5 w-36", r) }),
41
+ /* @__PURE__ */ a(s, { className: e("h-ds-sm w-24 rounded-ds-lg", r) })
42
+ ] }),
43
+ /* @__PURE__ */ a("div", { className: "grid grid-cols-1 gap-ds-04 sm:grid-cols-2 lg:grid-cols-3", children: Array.from({ length: 3 }).map((o, l) => /* @__PURE__ */ d(
44
+ "div",
45
+ {
46
+ className: "flex flex-col gap-ds-03 rounded-ds-lg border border-border p-ds-05",
47
+ children: [
48
+ /* @__PURE__ */ a(s, { className: e("h-ds-04 w-3/4", r) }),
49
+ /* @__PURE__ */ a(s, { className: e("h-3 w-full", r) }),
50
+ /* @__PURE__ */ a(s, { className: e("h-3 w-1/2", r) })
51
+ ]
52
+ },
53
+ `ds-card-${l}`
54
+ )) })
55
+ ] }) }),
56
+ /* @__PURE__ */ a("div", { className: "lg:col-span-2", children: /* @__PURE__ */ d("div", { className: "flex flex-col gap-ds-05 rounded-ds-xl border border-border bg-layer-01 p-ds-06", children: [
57
+ /* @__PURE__ */ a(s, { className: e("h-5 w-24", r) }),
58
+ /* @__PURE__ */ a("div", { className: "grid grid-cols-2 gap-ds-05 sm:grid-cols-4", children: Array.from({ length: 4 }).map((o, l) => /* @__PURE__ */ d("div", { className: "flex flex-col gap-ds-03", children: [
59
+ /* @__PURE__ */ a(s, { className: e("h-3 w-16", r) }),
60
+ /* @__PURE__ */ a(s, { className: e("h-6 w-ds-lg", r) })
61
+ ] }, `ds-stat-${l}`)) })
62
+ ] }) }),
63
+ /* @__PURE__ */ d("div", { className: "flex flex-col gap-ds-05 rounded-ds-xl border border-border bg-layer-01 p-ds-06", children: [
64
+ /* @__PURE__ */ a(s, { className: e("h-5 w-20", r) }),
65
+ /* @__PURE__ */ a("div", { className: "flex flex-col gap-ds-05", children: Array.from({ length: 3 }).map((o, l) => /* @__PURE__ */ d("div", { className: "flex gap-ds-04", children: [
66
+ /* @__PURE__ */ a(s, { className: e("h-3 w-3 shrink-0 rounded-ds-full", r) }),
67
+ /* @__PURE__ */ d("div", { className: "flex flex-1 flex-col gap-ds-02", children: [
68
+ /* @__PURE__ */ a(s, { className: e("h-3 w-full", r) }),
69
+ /* @__PURE__ */ a(s, { className: e("h-ds-03 w-20", r) })
70
+ ] })
71
+ ] }, `ds-time-${l}`)) })
72
+ ] })
73
+ ] })
74
+ ] });
75
+ }
76
+ );
77
+ f.displayName = "DevsabhaSkeleton";
78
+ const h = i.forwardRef(
79
+ function(n, c) {
80
+ return /* @__PURE__ */ d("div", { ref: c, className: "flex flex-col gap-ds-06", children: [
81
+ /* @__PURE__ */ a("div", { className: "grid grid-cols-1 gap-ds-05 sm:grid-cols-3", children: Array.from({ length: 3 }).map((o, l) => /* @__PURE__ */ d(
82
+ "div",
83
+ {
84
+ className: "flex flex-col gap-ds-04 rounded-ds-xl border border-border bg-layer-01 p-ds-05b",
85
+ children: [
86
+ /* @__PURE__ */ a(s, { className: e("h-3 w-24", r) }),
87
+ /* @__PURE__ */ a(s, { className: e("h-ds-xs-plus w-16", r) }),
88
+ /* @__PURE__ */ a(s, { className: e("h-2 w-full rounded-ds-full", r) })
89
+ ]
90
+ },
91
+ `bw-card-${l}`
92
+ )) }),
93
+ /* @__PURE__ */ d("div", { className: "overflow-hidden rounded-ds-xl border border-border", children: [
94
+ /* @__PURE__ */ a("div", { className: "flex items-center gap-ds-05 border-b border-border bg-layer-02 px-ds-05b py-ds-04", children: Array.from({ length: 5 }).map((o, l) => /* @__PURE__ */ a(
95
+ s,
96
+ {
97
+ className: e(
98
+ "h-3",
99
+ r,
100
+ l === 0 ? "w-40" : "flex-1"
101
+ )
102
+ },
103
+ `bw-th-${l}`
104
+ )) }),
105
+ Array.from({ length: 6 }).map((o, l) => /* @__PURE__ */ d(
106
+ "div",
107
+ {
108
+ className: e(
109
+ "flex items-center gap-ds-05 px-ds-05b py-ds-04",
110
+ l < 5 && "border-b border-border"
111
+ ),
112
+ children: [
113
+ /* @__PURE__ */ d("div", { className: "flex w-40 items-center gap-ds-03", children: [
114
+ /* @__PURE__ */ a(s, { className: e("h-ds-xs-plus w-ds-xs-plus shrink-0 rounded-ds-full", r) }),
115
+ /* @__PURE__ */ a(s, { className: e("h-3 w-24", r) })
116
+ ] }),
117
+ Array.from({ length: 4 }).map((p, t) => /* @__PURE__ */ a(
118
+ s,
119
+ {
120
+ className: e("h-3 flex-1", r)
121
+ },
122
+ `bw-cell-${l}-${t}`
123
+ ))
124
+ ]
125
+ },
126
+ `bw-row-${l}`
127
+ ))
128
+ ] })
129
+ ] });
130
+ }
131
+ );
132
+ h.displayName = "BandwidthSkeleton";
47
133
  export {
48
- F as AccentProvider,
49
- A as ActivityTab,
50
- Q as AdjustmentType,
51
- ie as AdminDashboard,
52
- ke as AdminDashboardSkeleton,
53
- Ae as ApprovedAdjustments,
54
- Be as AssociateDetail,
55
- H as AttendanceCTA,
56
- Se as AttendanceOverview,
57
- o as BandwidthSkeleton,
58
- p as BoardColumn,
59
- be as BreakAdmin,
60
- ue as BreakAdminHeader,
61
- he as BreakAdminSkeleton,
62
- je as BreakBalance,
63
- Ee as BreakRequestCard,
64
- Oe as Breaks,
65
- qe as Calendar,
66
- j as ChatInput,
67
- h as ChatPanel,
68
- z as ClientPortalHeader,
69
- O as ConversationList,
70
- B as ConversationTab,
71
- He as CorrectionList,
72
- W as DailyBrief,
73
- We as DashboardHeader,
74
- Fe as DeleteBreak,
75
- t as DevsabhaSkeleton,
76
- ze as EditBreak,
77
- Je as EditBreakBalance,
78
- S as FilesTab,
79
- m as KanbanBoard,
80
- Qe as LeaveRequest,
81
- Ve as LeaveRequests,
82
- E as MessageList,
83
- J as ProjectCard,
84
- Ye as RenderDate,
85
- b as ReviewTab,
86
- q as StreamingText,
87
- u as SubtasksTab,
88
- n as TaskCard,
89
- s as TaskCardOverlay,
90
- i as TaskDetailPanel,
91
- k as TaskProperties,
92
- Z as formatDate,
93
- _ as formatDateIST,
94
- $ as formatDateWithWeekday,
95
- ee as formatOptionalDate,
96
- re as formatTimeIST,
97
- oe as getDaySuffix,
98
- te as getEndOfDay,
99
- ae as getMonthDays,
100
- me as getStartOfDay,
101
- fe as getWeekDays,
102
- pe as isSameDay,
103
- ne as removeAllEmojis,
104
- se as removeEmojiAtStart,
105
- U as renderAdjustmentType,
106
- X as renderStatus
134
+ Y as AccentProvider,
135
+ E as ActivityTab,
136
+ sa as AdjustmentType,
137
+ ra as AdminDashboard,
138
+ da as AdminDashboardSkeleton,
139
+ la as ApprovedAdjustments,
140
+ oa as AssociateDetail,
141
+ U as AttendanceCTA,
142
+ ca as AttendanceOverview,
143
+ h as BandwidthSkeleton,
144
+ u as BoardColumn,
145
+ w as BoardProvider,
146
+ y as BoardToolbar,
147
+ ia as BreakAdmin,
148
+ ma as BreakAdminHeader,
149
+ na as BreakAdminSkeleton,
150
+ ta as BreakBalance,
151
+ fa as BreakRequestCard,
152
+ ha as Breaks,
153
+ k as BulkActionBar,
154
+ pa as Calendar,
155
+ W as ChatInput,
156
+ z as ChatPanel,
157
+ Z as ClientPortalHeader,
158
+ A as ColumnEmpty,
159
+ B as ColumnHeader,
160
+ G as ConversationList,
161
+ L as ConversationTab,
162
+ ga as CorrectionList,
163
+ V as DailyBrief,
164
+ xa as DashboardHeader,
165
+ ba as DeleteBreak,
166
+ f as DevsabhaSkeleton,
167
+ Na as EditBreak,
168
+ va as EditBreakBalance,
169
+ O as FilesTab,
170
+ C as KanbanBoard,
171
+ ua as LeaveRequest,
172
+ wa as LeaveRequests,
173
+ I as MessageList,
174
+ aa as ProjectCard,
175
+ ya as RenderDate,
176
+ H as ReviewTab,
177
+ J as StreamingText,
178
+ q as SubtasksTab,
179
+ D as TaskCard,
180
+ T as TaskCardCompact,
181
+ S as TaskCardCompactOverlay,
182
+ j as TaskCardOverlay,
183
+ _ as TaskContextMenu,
184
+ M as TaskDetailPanel,
185
+ F as TaskProperties,
186
+ ka as formatDate,
187
+ Aa as formatDateIST,
188
+ Ba as formatDateWithWeekday,
189
+ Ca as formatOptionalDate,
190
+ Da as formatTimeIST,
191
+ Ta as getDaySuffix,
192
+ Sa as getEndOfDay,
193
+ ja as getMonthDays,
194
+ _a as getStartOfDay,
195
+ Ra as getWeekDays,
196
+ $a as isSameDay,
197
+ Pa as removeAllEmojis,
198
+ Ea as removeEmojiAtStart,
199
+ La as renderAdjustmentType,
200
+ Oa as renderStatus,
201
+ R as useBoardContext,
202
+ $ as useBoardKeyboard
107
203
  };
@@ -1,17 +1,11 @@
1
1
  "use client";
2
- import { TaskDetailPanel as e } from "./task-detail-panel.js";
3
- import { TaskProperties as a } from "./task-properties.js";
4
- import { ActivityTab as f } from "./activity-tab.js";
5
- import { ConversationTab as m } from "./conversation-tab.js";
6
- import { FilesTab as x } from "./files-tab.js";
7
- import { ReviewTab as b } from "./review-tab.js";
8
- import { SubtasksTab as l } from "./subtasks-tab.js";
2
+ import { A as e, C as T, F as i, R as t, S as b, T as o, a as r } from "../_chunks/task-detail-panel.js";
9
3
  export {
10
- f as ActivityTab,
11
- m as ConversationTab,
12
- x as FilesTab,
13
- b as ReviewTab,
14
- l as SubtasksTab,
15
- e as TaskDetailPanel,
16
- a as TaskProperties
4
+ e as ActivityTab,
5
+ T as ConversationTab,
6
+ i as FilesTab,
7
+ t as ReviewTab,
8
+ b as SubtasksTab,
9
+ o as TaskDetailPanel,
10
+ r as TaskProperties
17
11
  };
package/package.json CHANGED
@@ -1,80 +1,78 @@
1
- {
2
- "name": "@devalok/shilp-sutra-karm",
3
- "version": "0.8.2",
4
- "description": "Domain components for Karm — board, tasks, chat, dashboard, client, and admin",
5
- "license": "MIT",
6
- "type": "module",
7
- "main": "./dist/index.js",
8
- "module": "./dist/index.js",
9
- "types": "./dist/index.d.ts",
10
- "sideEffects": [
11
- "**/*.css"
12
- ],
13
- "exports": {
14
- ".": {
15
- "import": "./dist/index.js",
16
- "default": "./dist/index.js",
17
- "types": "./dist/index.d.ts"
18
- },
19
- "./board": {
20
- "import": "./dist/board/index.js",
21
- "default": "./dist/board/index.js",
22
- "types": "./dist/board/index.d.ts"
23
- },
24
- "./tasks": {
25
- "import": "./dist/tasks/index.js",
26
- "default": "./dist/tasks/index.js",
27
- "types": "./dist/tasks/index.d.ts"
28
- },
29
- "./chat": {
30
- "import": "./dist/chat/index.js",
31
- "default": "./dist/chat/index.js",
32
- "types": "./dist/chat/index.d.ts"
33
- },
34
- "./dashboard": {
35
- "import": "./dist/dashboard/index.js",
36
- "default": "./dist/dashboard/index.js",
37
- "types": "./dist/dashboard/index.d.ts"
38
- },
39
- "./client": {
40
- "import": "./dist/client/index.js",
41
- "default": "./dist/client/index.js",
42
- "types": "./dist/client/index.d.ts"
43
- },
44
- "./admin": {
45
- "import": "./dist/admin/index.js",
46
- "default": "./dist/admin/index.js",
47
- "types": "./dist/admin/index.d.ts"
48
- }
49
- },
50
- "files": [
51
- "dist",
52
- "README.md",
53
- "llms.txt"
54
- ],
55
- "scripts": {
56
- "build": "vite build && node scripts/inject-use-client.mjs",
57
- "typecheck": "tsc --noEmit",
58
- "lint": "eslint src/",
59
- "prepublishOnly": "pnpm build"
60
- },
61
- "peerDependencies": {
62
- "@devalok/shilp-sutra": ">=0.7.0",
63
- "@tabler/icons-react": "^3.0.0",
64
- "react": "^18 || ^19",
65
- "react-dom": "^18 || ^19"
66
- },
67
- "devDependencies": {
68
- "@devalok/shilp-sutra": "workspace:*"
69
- },
70
- "dependencies": {
71
- "@dnd-kit/core": "^6.3.1",
72
- "@dnd-kit/sortable": "^10.0.0",
73
- "@dnd-kit/utilities": "^3.2.2",
74
- "class-variance-authority": "^0.7.1",
75
- "clsx": "^2.1.1",
76
- "date-fns": "^4.1.0",
77
- "react-markdown": "^10.1.0",
78
- "tailwind-merge": "^3.0.1"
79
- }
80
- }
1
+ {
2
+ "name": "@devalok/shilp-sutra-karm",
3
+ "version": "0.10.0",
4
+ "description": "Domain components for Karm — board, tasks, chat, dashboard, client, and admin",
5
+ "license": "MIT",
6
+ "type": "module",
7
+ "main": "./dist/index.js",
8
+ "module": "./dist/index.js",
9
+ "types": "./dist/index.d.ts",
10
+ "sideEffects": [
11
+ "**/*.css"
12
+ ],
13
+ "exports": {
14
+ ".": {
15
+ "import": "./dist/index.js",
16
+ "default": "./dist/index.js",
17
+ "types": "./dist/index.d.ts"
18
+ },
19
+ "./board": {
20
+ "import": "./dist/board/index.js",
21
+ "default": "./dist/board/index.js",
22
+ "types": "./dist/board/index.d.ts"
23
+ },
24
+ "./tasks": {
25
+ "import": "./dist/tasks/index.js",
26
+ "default": "./dist/tasks/index.js",
27
+ "types": "./dist/tasks/index.d.ts"
28
+ },
29
+ "./chat": {
30
+ "import": "./dist/chat/index.js",
31
+ "default": "./dist/chat/index.js",
32
+ "types": "./dist/chat/index.d.ts"
33
+ },
34
+ "./dashboard": {
35
+ "import": "./dist/dashboard/index.js",
36
+ "default": "./dist/dashboard/index.js",
37
+ "types": "./dist/dashboard/index.d.ts"
38
+ },
39
+ "./client": {
40
+ "import": "./dist/client/index.js",
41
+ "default": "./dist/client/index.js",
42
+ "types": "./dist/client/index.d.ts"
43
+ },
44
+ "./admin": {
45
+ "import": "./dist/admin/index.js",
46
+ "default": "./dist/admin/index.js",
47
+ "types": "./dist/admin/index.d.ts"
48
+ }
49
+ },
50
+ "files": [
51
+ "dist",
52
+ "README.md",
53
+ "llms.txt"
54
+ ],
55
+ "scripts": {
56
+ "build": "vite build && node scripts/inject-use-client.mjs",
57
+ "typecheck": "tsc --noEmit",
58
+ "lint": "eslint src/",
59
+ "prepublishOnly": "pnpm build"
60
+ },
61
+ "peerDependencies": {
62
+ "@devalok/shilp-sutra": ">=0.7.0",
63
+ "@tabler/icons-react": "^3.0.0",
64
+ "react": "^18 || ^19",
65
+ "react-dom": "^18 || ^19"
66
+ },
67
+ "devDependencies": {
68
+ "@devalok/shilp-sutra": "workspace:*",
69
+ "@dnd-kit/core": "^6.3.1",
70
+ "@dnd-kit/sortable": "^10.0.0",
71
+ "@dnd-kit/utilities": "^3.2.2",
72
+ "class-variance-authority": "^0.7.1",
73
+ "clsx": "^2.1.1",
74
+ "date-fns": "^4.1.0",
75
+ "react-markdown": "^10.1.0",
76
+ "tailwind-merge": "^3.0.1"
77
+ }
78
+ }
@@ -1,43 +0,0 @@
1
- "use client";
2
- import { jsx as e, jsxs as s } from "react/jsx-runtime";
3
- import * as p from "react";
4
- import { formatDate as c } from "../utils/date-utils.js";
5
- const i = p.forwardRef(
6
- function({
7
- adjustments: r,
8
- adminId: o
9
- }, t) {
10
- return /* @__PURE__ */ e("div", { ref: t, className: "no-scrollbar w-full overflow-auto border border-border-subtle sm:rounded-ds-lg max-md:rounded-ds-none max-md:border-0", children: /* @__PURE__ */ e("div", { className: "bg-layer-02 pb-ds-06 pl-ds-05 pt-ds-03 md:p-ds-05", children: /* @__PURE__ */ e("div", { className: "no-scrollbar w-full overflow-x-auto overflow-y-auto", children: /* @__PURE__ */ s("div", { className: "min-w-[800px] max-md:w-[max-content]", children: [
11
- /* @__PURE__ */ s("div", { className: "text-ds-sm font-semibold uppercase tracking-wider sticky top-0 grid grid-cols-[200px_160px_80px_1fr_1fr_1fr] gap-ds-05 py-ds-03 text-text-placeholder sm:px-ds-06", children: [
12
- /* @__PURE__ */ e("div", { className: "p-ds-03 pl-ds-04", children: "User" }),
13
- /* @__PURE__ */ e("div", { className: "p-ds-03 pl-ds-04", children: "Date" }),
14
- /* @__PURE__ */ e("div", { className: "p-ds-03 text-center", children: "Days" }),
15
- /* @__PURE__ */ e("div", { className: "p-ds-03 pl-ds-04", children: "Type" }),
16
- /* @__PURE__ */ e("div", { className: "p-ds-03", children: "Reason" }),
17
- /* @__PURE__ */ e("div", { className: "p-ds-03", children: "Approved By" })
18
- ] }),
19
- /* @__PURE__ */ e("div", { className: "text-ds-md no-scrollbar overflow-y-auto md:max-h-[414px] max-md:h-[calc(100dvh-366px)] max-md:max-h-[calc(100dvh-366px)] max-md:overflow-visible max-md:overflow-y-auto max-md:overflow-x-visible", children: r.length === 0 ? /* @__PURE__ */ e("div", { className: "flex justify-center p-ds-05 text-text-tertiary", children: "No approved adjustments found" }) : r.map((d) => {
20
- var a, l;
21
- return /* @__PURE__ */ s(
22
- "div",
23
- {
24
- className: "grid grid-cols-[200px_160px_80px_1fr_1fr_1fr] gap-ds-05 bg-layer-02 py-ds-03 sm:px-ds-06",
25
- children: [
26
- /* @__PURE__ */ e("div", { className: "p-ds-03 pl-ds-04 text-text-secondary", children: ((a = d.user) == null ? void 0 : a.name) || "Unknown User" }),
27
- /* @__PURE__ */ e("div", { className: "w-[160px] p-ds-03 text-text-secondary", children: c(new Date(d.createdAt)) }),
28
- /* @__PURE__ */ e("div", { className: "w-[80px] p-ds-03 text-center text-text-secondary", children: d.numberOfDays }),
29
- /* @__PURE__ */ e("div", { className: "max-w-[350px] p-ds-03 pl-ds-04 text-text-tertiary", children: d.type }),
30
- /* @__PURE__ */ e("div", { className: "max-w-[350px] p-ds-03 text-text-secondary", children: d.reason || "-" }),
31
- /* @__PURE__ */ e("div", { className: "p-ds-03 text-text-secondary", children: ((l = d.approver) == null ? void 0 : l.name) || (d.approvedBy === o ? "You" : "Unknown") })
32
- ]
33
- },
34
- d.id
35
- );
36
- }) })
37
- ] }) }) }) });
38
- }
39
- );
40
- i.displayName = "ApprovedAdjustments";
41
- export {
42
- i as ApprovedAdjustments
43
- };
@@ -1,59 +0,0 @@
1
- "use client";
2
- import { jsxs as d, jsx as e } from "react/jsx-runtime";
3
- import * as r from "react";
4
- import { Skeleton as s } from "@devalok/shilp-sutra/ui/skeleton";
5
- const m = r.forwardRef(
6
- function(c, l) {
7
- return /* @__PURE__ */ d("div", { ref: l, className: "z-base h-fit w-full max-w-layout-body overflow-hidden border-[1px] border-border-subtle bg-field sm:rounded-ds-lg", children: [
8
- /* @__PURE__ */ e("div", { className: "flex items-center justify-end bg-field px-ds-06 py-ds-05b", children: /* @__PURE__ */ e("header", { className: "flex items-center", children: /* @__PURE__ */ d("div", { className: "flex items-center gap-ds-04", children: [
9
- /* @__PURE__ */ e(s, { className: "h-ds-sm-plus w-32 rounded-ds-md" }),
10
- /* @__PURE__ */ e(s, { className: "h-ds-sm-plus w-32 rounded-ds-md" })
11
- ] }) }) }),
12
- /* @__PURE__ */ d("div", { className: "flex h-fit flex-col border-t-[1px] border-border-subtle bg-layer-02 shadow-transparent", children: [
13
- /* @__PURE__ */ d("div", { className: "flex w-full gap-ds-03 border-b-[1px] border-border px-ds-06 pt-ds-03", children: [
14
- /* @__PURE__ */ e(s, { className: "h-ds-md w-20" }),
15
- /* @__PURE__ */ e(s, { className: "h-ds-md w-24" }),
16
- /* @__PURE__ */ e(s, { className: "h-ds-md w-24" })
17
- ] }),
18
- /* @__PURE__ */ d("div", { className: "h-[400px] border-0 px-ds-06 py-ds-05", children: [
19
- /* @__PURE__ */ d("div", { className: "mb-ds-05 ml-ds-06 grid grid-cols-6 items-center gap-ds-05 py-ds-03", children: [
20
- /* @__PURE__ */ e(s, { className: "h-5 w-full bg-field" }),
21
- /* @__PURE__ */ e(s, { className: "h-5 w-full bg-field" }),
22
- /* @__PURE__ */ e(s, { className: "h-5 w-full bg-field" }),
23
- /* @__PURE__ */ e(s, { className: "h-5 w-full bg-field" }),
24
- /* @__PURE__ */ e(s, { className: "h-5 w-full bg-field" }),
25
- /* @__PURE__ */ e(s, { className: "h-5 w-full bg-field" })
26
- ] }),
27
- /* @__PURE__ */ e("div", { className: "flex flex-col gap-ds-05", children: Array.from({ length: 5 }).map((f, a) => /* @__PURE__ */ d(
28
- "div",
29
- {
30
- className: "ml-ds-06 grid grid-cols-6 items-center gap-ds-05 rounded-ds-lg py-ds-03",
31
- children: [
32
- /* @__PURE__ */ d("div", { className: "flex items-center gap-ds-03", children: [
33
- /* @__PURE__ */ e(s, { className: "h-ds-sm w-ds-sm rounded-ds-full bg-field" }),
34
- /* @__PURE__ */ e(s, { className: "h-5 w-24 bg-field" })
35
- ] }),
36
- /* @__PURE__ */ e(s, { className: "h-5 w-full bg-field" }),
37
- /* @__PURE__ */ e(s, { className: "h-5 w-16 bg-field" }),
38
- /* @__PURE__ */ e(s, { className: "h-5 w-full bg-field" }),
39
- /* @__PURE__ */ d("div", { className: "flex items-center gap-ds-03", children: [
40
- /* @__PURE__ */ e(s, { className: "h-ds-xs w-ds-xs rounded-ds-full bg-field" }),
41
- /* @__PURE__ */ e(s, { className: "h-5 w-16 bg-field" })
42
- ] }),
43
- /* @__PURE__ */ d("div", { className: "flex items-center justify-end gap-ds-03", children: [
44
- /* @__PURE__ */ e(s, { className: "h-ds-sm w-ds-sm rounded-ds-full bg-field" }),
45
- /* @__PURE__ */ e(s, { className: "h-ds-sm w-ds-sm rounded-ds-full bg-field" })
46
- ] })
47
- ]
48
- },
49
- a
50
- )) })
51
- ] })
52
- ] })
53
- ] });
54
- }
55
- );
56
- m.displayName = "BreakAdminSkeleton";
57
- export {
58
- m as BreakAdminSkeleton
59
- };