@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
package/dist/dashboard/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { A as Me, D as Re, b as je, c as Ae, S as Le, a as Be, u as Ie } from "../_chunks/sidebar-scratchpad.js";
|
|
3
3
|
import { jsx as r, jsxs as u, Fragment as G } from "react/jsx-runtime";
|
|
4
|
-
import * as
|
|
4
|
+
import * as v from "react";
|
|
5
5
|
import { useMemo as U, useContext as Z, createContext as q, useState as J, useRef as Q, useCallback as V } from "react";
|
|
6
6
|
import { motion as C } from "framer-motion";
|
|
7
|
-
import { cn as
|
|
7
|
+
import { cn as k } from "@devalok/shilp-sutra/ui/lib/utils";
|
|
8
8
|
import { motionProps as M } from "@devalok/shilp-sutra/ui/lib/motion";
|
|
9
9
|
import { Badge as S } from "@devalok/shilp-sutra/ui/badge";
|
|
10
10
|
import { Progress as R } from "@devalok/shilp-sutra/ui/progress";
|
|
@@ -12,43 +12,43 @@ import { MotionStagger as ee, MotionPop as te, MotionStaggerItem as re } from "@
|
|
|
12
12
|
import { Tooltip as ae, TooltipTrigger as se, TooltipContent as ne, TooltipProvider as oe } from "@devalok/shilp-sutra/ui/tooltip";
|
|
13
13
|
function ce(t, e, s, o) {
|
|
14
14
|
if (t.length < 2) return { path: "", endX: 0, endY: 0, startX: 0 };
|
|
15
|
-
const a = t.length,
|
|
15
|
+
const a = t.length, l = e - o * 2, c = s - o * 2;
|
|
16
16
|
let m = Math.min(...t), f = Math.max(...t);
|
|
17
17
|
if (f - m < 0.1) {
|
|
18
18
|
const d = (f + m) / 2;
|
|
19
19
|
m = d - 0.05, f = d + 0.05;
|
|
20
20
|
}
|
|
21
|
-
const p = t.map((d, h) => o + h / (a - 1) *
|
|
21
|
+
const p = t.map((d, h) => o + h / (a - 1) * l), n = t.map(
|
|
22
22
|
(d) => o + (1 - (d - m) / (f - m)) * c
|
|
23
|
-
),
|
|
24
|
-
|
|
23
|
+
), i = [];
|
|
24
|
+
i.push(`M ${p[0]} ${n[0]}`);
|
|
25
25
|
for (let d = 0; d < a - 1; d++) {
|
|
26
|
-
const h = p[Math.max(0, d - 1)], g = n[Math.max(0, d - 1)], w = p[d], x = n[d], N = p[d + 1],
|
|
27
|
-
|
|
26
|
+
const h = p[Math.max(0, d - 1)], g = n[Math.max(0, d - 1)], w = p[d], x = n[d], N = p[d + 1], b = n[d + 1], B = p[Math.min(a - 1, d + 2)], I = n[Math.min(a - 1, d + 2)], E = (N - h) / 6, X = (b - g) / 6, z = (B - w) / 6, F = (I - x) / 6, K = w + E, O = x + X, Y = N - z, _ = b - F;
|
|
27
|
+
i.push(`C ${K} ${O}, ${Y} ${_}, ${N} ${b}`);
|
|
28
28
|
}
|
|
29
29
|
return {
|
|
30
|
-
path:
|
|
30
|
+
path: i.join(" "),
|
|
31
31
|
endX: p[a - 1],
|
|
32
32
|
endY: n[a - 1],
|
|
33
33
|
startX: p[0]
|
|
34
34
|
};
|
|
35
35
|
}
|
|
36
|
-
function
|
|
36
|
+
function ie(t) {
|
|
37
37
|
const e = t.length;
|
|
38
38
|
if (e < 6)
|
|
39
39
|
return { stroke: "var(--warning-9)", fill: "var(--warning-4)" };
|
|
40
40
|
const s = (t[0] + t[1] + t[2]) / 3, a = (t[e - 3] + t[e - 2] + t[e - 1]) / 3 - s;
|
|
41
41
|
return a > 0.05 ? { stroke: "var(--success-9)", fill: "var(--success-4)" } : a < -0.05 ? { stroke: "var(--error-9)", fill: "var(--error-4)" } : { stroke: "var(--warning-9)", fill: "var(--warning-4)" };
|
|
42
42
|
}
|
|
43
|
-
function
|
|
44
|
-
const { path:
|
|
43
|
+
function le({ trend: t, id: e }) {
|
|
44
|
+
const { path: l, endX: c, endY: m, startX: f } = ce(
|
|
45
45
|
t,
|
|
46
46
|
48,
|
|
47
47
|
20,
|
|
48
48
|
2
|
|
49
|
-
), { stroke: p, fill: n } =
|
|
50
|
-
if (!
|
|
51
|
-
const
|
|
49
|
+
), { stroke: p, fill: n } = ie(t);
|
|
50
|
+
if (!l) return null;
|
|
51
|
+
const i = `sparkline-fill-${e}`;
|
|
52
52
|
return /* @__PURE__ */ u(
|
|
53
53
|
"svg",
|
|
54
54
|
{
|
|
@@ -58,21 +58,21 @@ function ie({ trend: t, id: e }) {
|
|
|
58
58
|
className: "sparkline",
|
|
59
59
|
"aria-hidden": "true",
|
|
60
60
|
children: [
|
|
61
|
-
/* @__PURE__ */ r("defs", { children: /* @__PURE__ */ u("linearGradient", { id:
|
|
61
|
+
/* @__PURE__ */ r("defs", { children: /* @__PURE__ */ u("linearGradient", { id: i, x1: "0", y1: "0", x2: "0", y2: "1", children: [
|
|
62
62
|
/* @__PURE__ */ r("stop", { offset: "0%", stopColor: n, stopOpacity: 0.15 }),
|
|
63
63
|
/* @__PURE__ */ r("stop", { offset: "100%", stopColor: n, stopOpacity: 0 })
|
|
64
64
|
] }) }),
|
|
65
65
|
/* @__PURE__ */ r(
|
|
66
66
|
"path",
|
|
67
67
|
{
|
|
68
|
-
d: `${
|
|
69
|
-
fill: `url(#${
|
|
68
|
+
d: `${l} L ${c} 18 L ${f} 18 Z`,
|
|
69
|
+
fill: `url(#${i})`
|
|
70
70
|
}
|
|
71
71
|
),
|
|
72
72
|
/* @__PURE__ */ r(
|
|
73
73
|
"path",
|
|
74
74
|
{
|
|
75
|
-
d:
|
|
75
|
+
d: l,
|
|
76
76
|
fill: "none",
|
|
77
77
|
stroke: p,
|
|
78
78
|
strokeWidth: 1.5,
|
|
@@ -92,18 +92,18 @@ function de({
|
|
|
92
92
|
return /* @__PURE__ */ r(
|
|
93
93
|
"div",
|
|
94
94
|
{
|
|
95
|
-
className:
|
|
96
|
-
"rounded-ds-md border border-surface-border bg-surface-
|
|
95
|
+
className: k(
|
|
96
|
+
"rounded-ds-md border border-surface-border bg-surface-raised p-ds-04",
|
|
97
97
|
t
|
|
98
98
|
),
|
|
99
99
|
...e,
|
|
100
100
|
children: /* @__PURE__ */ u("div", { className: "flex flex-col gap-ds-03", children: [
|
|
101
101
|
/* @__PURE__ */ u("div", { className: "flex justify-between", children: [
|
|
102
|
-
/* @__PURE__ */ r("div", { className: "h-5 w-32 animate-pulse rounded bg-surface-
|
|
103
|
-
/* @__PURE__ */ r("div", { className: "h-5 w-16 animate-pulse rounded bg-surface-
|
|
102
|
+
/* @__PURE__ */ r("div", { className: "h-5 w-32 animate-pulse rounded bg-surface-raised-hover" }),
|
|
103
|
+
/* @__PURE__ */ r("div", { className: "h-5 w-16 animate-pulse rounded bg-surface-raised-hover" })
|
|
104
104
|
] }),
|
|
105
|
-
/* @__PURE__ */ r("div", { className: "h-2 w-full animate-pulse rounded bg-surface-
|
|
106
|
-
/* @__PURE__ */ r("div", { className: "h-4 w-48 animate-pulse rounded bg-surface-
|
|
105
|
+
/* @__PURE__ */ r("div", { className: "h-2 w-full animate-pulse rounded bg-surface-raised-hover" }),
|
|
106
|
+
/* @__PURE__ */ r("div", { className: "h-4 w-48 animate-pulse rounded bg-surface-raised-hover" })
|
|
107
107
|
] })
|
|
108
108
|
}
|
|
109
109
|
);
|
|
@@ -123,17 +123,17 @@ function ue({
|
|
|
123
123
|
function me(t) {
|
|
124
124
|
return t > 75 ? "success" : t >= 25 ? "warning" : "error";
|
|
125
125
|
}
|
|
126
|
-
const fe =
|
|
126
|
+
const fe = v.forwardRef(function({ project: e, onClick: s, loading: o, className: a, ...l }, c) {
|
|
127
127
|
if (o)
|
|
128
|
-
return /* @__PURE__ */ r(de, { className: a, ...
|
|
129
|
-
const { id: m, name: f, completed: p, total: n, overdue:
|
|
128
|
+
return /* @__PURE__ */ r(de, { className: a, ...l });
|
|
129
|
+
const { id: m, name: f, completed: p, total: n, overdue: i, urgent: d, contextLine: h, trend: g } = e, w = n > 0 ? Math.round(p / n * 100) : 0, x = [];
|
|
130
130
|
h && x.push(
|
|
131
131
|
/* @__PURE__ */ r("span", { children: h }, "ctx")
|
|
132
|
-
),
|
|
132
|
+
), i && i > 0 && (x.length > 0 && x.push(
|
|
133
133
|
/* @__PURE__ */ r("span", { "aria-hidden": "true", children: " · " }, "sep")
|
|
134
134
|
), x.push(
|
|
135
135
|
/* @__PURE__ */ u("span", { className: "text-error-11", children: [
|
|
136
|
-
|
|
136
|
+
i,
|
|
137
137
|
" overdue"
|
|
138
138
|
] }, "overdue")
|
|
139
139
|
));
|
|
@@ -142,8 +142,8 @@ const fe = k.forwardRef(function({ project: e, onClick: s, loading: o, className
|
|
|
142
142
|
onClick: s,
|
|
143
143
|
role: "button",
|
|
144
144
|
tabIndex: 0,
|
|
145
|
-
onKeyDown: (
|
|
146
|
-
(
|
|
145
|
+
onKeyDown: (b) => {
|
|
146
|
+
(b.key === "Enter" || b.key === " ") && (b.preventDefault(), s());
|
|
147
147
|
}
|
|
148
148
|
} : {};
|
|
149
149
|
return /* @__PURE__ */ r(
|
|
@@ -151,17 +151,17 @@ const fe = k.forwardRef(function({ project: e, onClick: s, loading: o, className
|
|
|
151
151
|
{
|
|
152
152
|
ref: c,
|
|
153
153
|
"data-testid": "project-health-card",
|
|
154
|
-
className:
|
|
155
|
-
"rounded-ds-md border border-surface-border bg-surface-
|
|
156
|
-
s && "cursor-pointer hover:bg-surface-
|
|
154
|
+
className: k(
|
|
155
|
+
"rounded-ds-md border border-surface-border bg-surface-raised p-ds-04",
|
|
156
|
+
s && "cursor-pointer hover:bg-surface-raised-hover transition-colors duration-150",
|
|
157
157
|
a
|
|
158
158
|
),
|
|
159
159
|
...N,
|
|
160
|
-
...M(
|
|
160
|
+
...M(l),
|
|
161
161
|
children: /* @__PURE__ */ u("div", { className: "flex flex-col gap-ds-03", children: [
|
|
162
162
|
/* @__PURE__ */ u("div", { className: "flex items-center justify-between gap-ds-02", children: [
|
|
163
163
|
/* @__PURE__ */ r("span", { className: "min-w-0 truncate text-ds-md font-semibold text-surface-fg", children: f }),
|
|
164
|
-
/* @__PURE__ */ r(ue, { urgent: d, overdue:
|
|
164
|
+
/* @__PURE__ */ r(ue, { urgent: d, overdue: i })
|
|
165
165
|
] }),
|
|
166
166
|
/* @__PURE__ */ u("div", { className: "flex items-center gap-ds-03", children: [
|
|
167
167
|
/* @__PURE__ */ u("div", { className: "flex-1 flex items-center gap-ds-03", children: [
|
|
@@ -173,7 +173,7 @@ const fe = k.forwardRef(function({ project: e, onClick: s, loading: o, className
|
|
|
173
173
|
" tasks"
|
|
174
174
|
] })
|
|
175
175
|
] }),
|
|
176
|
-
g && g.length >= 2 && /* @__PURE__ */ r(
|
|
176
|
+
g && g.length >= 2 && /* @__PURE__ */ r(le, { trend: g, id: m })
|
|
177
177
|
] }),
|
|
178
178
|
x.length > 0 && /* @__PURE__ */ r("div", { className: "text-ds-xs text-surface-fg-subtle", children: x })
|
|
179
179
|
] })
|
|
@@ -189,7 +189,7 @@ function y() {
|
|
|
189
189
|
return t;
|
|
190
190
|
}
|
|
191
191
|
function pe(t, e) {
|
|
192
|
-
const s = t.filter((a) => a.date < e).sort((a,
|
|
192
|
+
const s = t.filter((a) => a.date < e).sort((a, l) => l.date.localeCompare(a.date));
|
|
193
193
|
let o = 0;
|
|
194
194
|
for (const a of s)
|
|
195
195
|
if (a.total > 0 && a.completed === a.total)
|
|
@@ -205,8 +205,8 @@ function A({
|
|
|
205
205
|
overdue: o,
|
|
206
206
|
today: a
|
|
207
207
|
}) {
|
|
208
|
-
const
|
|
209
|
-
const m = e.reduce((n,
|
|
208
|
+
const l = a ?? (/* @__PURE__ */ new Date()).toISOString().split("T")[0], c = U(() => {
|
|
209
|
+
const m = e.reduce((n, i) => n + i.completed, 0), f = e.reduce((n, i) => n + i.total, 0), p = pe(e, l);
|
|
210
210
|
return {
|
|
211
211
|
days: e,
|
|
212
212
|
onDayClick: s,
|
|
@@ -214,14 +214,14 @@ function A({
|
|
|
214
214
|
totalCompleted: m,
|
|
215
215
|
totalTasks: f,
|
|
216
216
|
streak: p,
|
|
217
|
-
today:
|
|
217
|
+
today: l
|
|
218
218
|
};
|
|
219
|
-
}, [e, s, o,
|
|
219
|
+
}, [e, s, o, l]);
|
|
220
220
|
return /* @__PURE__ */ r(j.Provider, { value: c, children: t });
|
|
221
221
|
}
|
|
222
222
|
A.displayName = "WeekHeatmapProvider";
|
|
223
|
-
const H =
|
|
224
|
-
function({ days: e, onDayClick: s, overdue: o, today: a, className:
|
|
223
|
+
const H = v.forwardRef(
|
|
224
|
+
function({ days: e, onDayClick: s, overdue: o, today: a, className: l, children: c, ...m }, f) {
|
|
225
225
|
return /* @__PURE__ */ r(
|
|
226
226
|
A,
|
|
227
227
|
{
|
|
@@ -229,7 +229,7 @@ const H = k.forwardRef(
|
|
|
229
229
|
onDayClick: s,
|
|
230
230
|
overdue: o,
|
|
231
231
|
today: a,
|
|
232
|
-
children: /* @__PURE__ */ r("div", { ref: f, className:
|
|
232
|
+
children: /* @__PURE__ */ r("div", { ref: f, className: k("flex flex-col gap-ds-04 rounded-ds-md border border-surface-border bg-surface-raised p-ds-04", l), ...m, children: c })
|
|
233
233
|
}
|
|
234
234
|
);
|
|
235
235
|
}
|
|
@@ -247,19 +247,19 @@ function xe(t) {
|
|
|
247
247
|
day: "numeric"
|
|
248
248
|
});
|
|
249
249
|
}
|
|
250
|
-
function
|
|
250
|
+
function ve(t, e) {
|
|
251
251
|
return t.date === e ? "today" : t.total === 0 ? "empty" : t.date > e ? "future" : t.completed === t.total ? "complete" : t.completed > 0 ? "partial" : "none";
|
|
252
252
|
}
|
|
253
|
-
const
|
|
253
|
+
const ke = {
|
|
254
254
|
complete: "bg-success-9 text-success-11",
|
|
255
255
|
partial: "bg-warning-9 text-warning-11",
|
|
256
256
|
none: "bg-error-9 text-error-11",
|
|
257
257
|
today: "bg-info-9 ring-1 ring-info-7 text-info-11 font-medium",
|
|
258
|
-
future: "bg-surface-
|
|
259
|
-
empty: "bg-surface-
|
|
260
|
-
}, W =
|
|
261
|
-
function({ day: e, index: s, focusedIndex: o, onFocusChange: a },
|
|
262
|
-
const { onDayClick: c, today: m } = y(), f =
|
|
258
|
+
future: "bg-surface-raised-active text-surface-fg-muted",
|
|
259
|
+
empty: "bg-surface-raised-hover border border-dashed border-surface-border text-surface-fg-subtle"
|
|
260
|
+
}, W = v.forwardRef(
|
|
261
|
+
function({ day: e, index: s, focusedIndex: o, onFocusChange: a }, l) {
|
|
262
|
+
const { onDayClick: c, today: m } = y(), f = ve(e, m), p = ge(e.date), n = f === "empty", i = /* @__PURE__ */ u("div", { className: "flex flex-col", children: [
|
|
263
263
|
/* @__PURE__ */ r("span", { children: xe(e.date) }),
|
|
264
264
|
/* @__PURE__ */ r("span", { children: e.total > 0 ? `${e.completed} of ${e.total} completed` : "No tasks" })
|
|
265
265
|
] }), d = () => {
|
|
@@ -271,7 +271,7 @@ const be = {
|
|
|
271
271
|
/* @__PURE__ */ r(se, { asChild: !0, children: /* @__PURE__ */ u(
|
|
272
272
|
C.div,
|
|
273
273
|
{
|
|
274
|
-
ref:
|
|
274
|
+
ref: l,
|
|
275
275
|
role: "gridcell",
|
|
276
276
|
tabIndex: o === s ? 0 : -1,
|
|
277
277
|
"aria-disabled": n || void 0,
|
|
@@ -286,9 +286,9 @@ const be = {
|
|
|
286
286
|
/* @__PURE__ */ r(
|
|
287
287
|
"div",
|
|
288
288
|
{
|
|
289
|
-
className:
|
|
290
|
-
"flex h-8 w-10 items-center justify-center rounded-ds-md transition-
|
|
291
|
-
|
|
289
|
+
className: k(
|
|
290
|
+
"flex h-8 w-10 items-center justify-center rounded-ds-md transition-[background-color,box-shadow] duration-fast-01 ease-productive-standard hover:ring-1 hover:ring-accent-7",
|
|
291
|
+
ke[f]
|
|
292
292
|
)
|
|
293
293
|
}
|
|
294
294
|
),
|
|
@@ -300,34 +300,34 @@ const be = {
|
|
|
300
300
|
]
|
|
301
301
|
}
|
|
302
302
|
) }),
|
|
303
|
-
/* @__PURE__ */ r(ne, { children:
|
|
303
|
+
/* @__PURE__ */ r(ne, { children: i })
|
|
304
304
|
] });
|
|
305
305
|
}
|
|
306
306
|
);
|
|
307
307
|
W.displayName = "WeekHeatmapDay";
|
|
308
|
-
const D =
|
|
308
|
+
const D = v.forwardRef(
|
|
309
309
|
function({ className: e, ...s }, o) {
|
|
310
|
-
const { days: a, today:
|
|
310
|
+
const { days: a, today: l } = y(), [c, m] = J(0), f = Q([]), p = V(
|
|
311
311
|
(n) => {
|
|
312
312
|
var d;
|
|
313
|
-
let
|
|
313
|
+
let i = c;
|
|
314
314
|
switch (n.key) {
|
|
315
315
|
case "ArrowRight":
|
|
316
|
-
n.preventDefault(),
|
|
316
|
+
n.preventDefault(), i = Math.min(c + 1, a.length - 1);
|
|
317
317
|
break;
|
|
318
318
|
case "ArrowLeft":
|
|
319
|
-
n.preventDefault(),
|
|
319
|
+
n.preventDefault(), i = Math.max(c - 1, 0);
|
|
320
320
|
break;
|
|
321
321
|
case "Home":
|
|
322
|
-
n.preventDefault(),
|
|
322
|
+
n.preventDefault(), i = 0;
|
|
323
323
|
break;
|
|
324
324
|
case "End":
|
|
325
|
-
n.preventDefault(),
|
|
325
|
+
n.preventDefault(), i = a.length - 1;
|
|
326
326
|
break;
|
|
327
327
|
default:
|
|
328
328
|
return;
|
|
329
329
|
}
|
|
330
|
-
m(
|
|
330
|
+
m(i), (d = f.current[i]) == null || d.focus();
|
|
331
331
|
},
|
|
332
332
|
[c, a.length]
|
|
333
333
|
);
|
|
@@ -338,18 +338,18 @@ const D = k.forwardRef(
|
|
|
338
338
|
role: "grid",
|
|
339
339
|
"aria-label": "Weekly task completion",
|
|
340
340
|
delay: 0.05,
|
|
341
|
-
className:
|
|
341
|
+
className: k("grid grid-cols-7 gap-ds-03", e),
|
|
342
342
|
onKeyDown: p,
|
|
343
343
|
...M(s),
|
|
344
|
-
children: /* @__PURE__ */ r("div", { role: "row", className: "contents", children: a.map((n,
|
|
345
|
-
const d = n.date ===
|
|
344
|
+
children: /* @__PURE__ */ r("div", { role: "row", className: "contents", children: a.map((n, i) => {
|
|
345
|
+
const d = n.date === l, h = /* @__PURE__ */ r(
|
|
346
346
|
W,
|
|
347
347
|
{
|
|
348
348
|
ref: (g) => {
|
|
349
|
-
f.current[
|
|
349
|
+
f.current[i] = g;
|
|
350
350
|
},
|
|
351
351
|
day: n,
|
|
352
|
-
index:
|
|
352
|
+
index: i,
|
|
353
353
|
focusedIndex: c,
|
|
354
354
|
onFocusChange: m
|
|
355
355
|
}
|
|
@@ -361,14 +361,14 @@ const D = k.forwardRef(
|
|
|
361
361
|
}
|
|
362
362
|
);
|
|
363
363
|
D.displayName = "WeekHeatmapDayStrip";
|
|
364
|
-
const $ =
|
|
364
|
+
const $ = v.forwardRef(
|
|
365
365
|
function({ className: e, ...s }, o) {
|
|
366
|
-
const { totalCompleted: a, totalTasks:
|
|
366
|
+
const { totalCompleted: a, totalTasks: l, overdue: c } = y(), m = l - a;
|
|
367
367
|
return /* @__PURE__ */ u(
|
|
368
368
|
"div",
|
|
369
369
|
{
|
|
370
370
|
ref: o,
|
|
371
|
-
className:
|
|
371
|
+
className: k("flex items-center gap-ds-03 text-ds-sm", e),
|
|
372
372
|
...s,
|
|
373
373
|
children: [
|
|
374
374
|
/* @__PURE__ */ u("span", { className: "text-success-11", children: [
|
|
@@ -393,21 +393,21 @@ const $ = k.forwardRef(
|
|
|
393
393
|
}
|
|
394
394
|
);
|
|
395
395
|
$.displayName = "WeekHeatmapSummary";
|
|
396
|
-
const P =
|
|
396
|
+
const P = v.forwardRef(
|
|
397
397
|
function({ className: e, ...s }, o) {
|
|
398
|
-
const { totalCompleted: a, totalTasks:
|
|
399
|
-
return /* @__PURE__ */ r("div", { ref: o, className:
|
|
398
|
+
const { totalCompleted: a, totalTasks: l } = y(), c = l > 0 ? Math.round(a / l * 100) : 0;
|
|
399
|
+
return /* @__PURE__ */ r("div", { ref: o, className: k(e), ...s, children: /* @__PURE__ */ r(R, { color: "success", size: "sm", value: c, "aria-label": "Weekly completion progress" }) });
|
|
400
400
|
}
|
|
401
401
|
);
|
|
402
402
|
P.displayName = "WeekHeatmapProgressBar";
|
|
403
|
-
const T =
|
|
403
|
+
const T = v.forwardRef(
|
|
404
404
|
function({ className: e, ...s }, o) {
|
|
405
405
|
const { streak: a } = y();
|
|
406
406
|
return a <= 1 ? null : /* @__PURE__ */ u(
|
|
407
407
|
"div",
|
|
408
408
|
{
|
|
409
409
|
ref: o,
|
|
410
|
-
className:
|
|
410
|
+
className: k("text-ds-sm font-medium text-warning-11", e),
|
|
411
411
|
...s,
|
|
412
412
|
children: [
|
|
413
413
|
"🔥 ",
|
|
@@ -419,7 +419,7 @@ const T = k.forwardRef(
|
|
|
419
419
|
}
|
|
420
420
|
);
|
|
421
421
|
T.displayName = "WeekHeatmapStreak";
|
|
422
|
-
const L =
|
|
422
|
+
const L = v.forwardRef(
|
|
423
423
|
function(e, s) {
|
|
424
424
|
const { children: o, ...a } = e;
|
|
425
425
|
return /* @__PURE__ */ u(H, { ref: s, ...a, children: [
|
package/dist/index.js
CHANGED
|
@@ -10,7 +10,7 @@ import { A as ma, D as ha, S as fa, a as ba } from "./_chunks/sidebar-scratchpad
|
|
|
10
10
|
import { A as pa, C as ua, P as va } from "./_chunks/project-card.js";
|
|
11
11
|
import { A as ka, a as Na, D as wa, b as ya, c as Aa, d as Ca, B as Ba, e as Da, f as Sa, g as Ta, h as Ea, i as ja, C as Ia, j as Pa, k as Ra, l as La, E as $a, m as _a, L as Ma, n as Oa, R as Ha, o as qa, p as Ka, q as Wa, r as Fa, s as Ua, t as za, u as Ga, v as Ja, w as Qa, x as Va, y as Xa, z as Ya, F as Za, G as ae, H as ee } from "./_chunks/render-adjustment-type.js";
|
|
12
12
|
import { IconShieldCheck as g, IconUmbrella as m, IconCalendarCheck as h, IconClipboardList as p, IconUserPlus as u, IconSettings as v, IconLayoutDashboard as x, IconLayoutKanban as k, IconListCheck as N, IconBook as w, IconAdjustmentsHorizontal as y, IconUserCircle as A } from "@tabler/icons-react";
|
|
13
|
-
const r = "bg-surface-
|
|
13
|
+
const r = "bg-surface-raised-hover", C = o.forwardRef(
|
|
14
14
|
function({ className: c, ...t }, i) {
|
|
15
15
|
return /* @__PURE__ */ d("div", { ref: i, className: e("flex flex-col gap-ds-06", c), ...t, children: [
|
|
16
16
|
/* @__PURE__ */ d("div", { className: "flex flex-col gap-ds-03", children: [
|
|
@@ -18,7 +18,7 @@ const r = "bg-surface-3", C = o.forwardRef(
|
|
|
18
18
|
/* @__PURE__ */ a(s, { className: e("h-ds-04 w-56", r) })
|
|
19
19
|
] }),
|
|
20
20
|
/* @__PURE__ */ d("div", { className: "grid grid-cols-1 gap-ds-05 lg:grid-cols-3", children: [
|
|
21
|
-
/* @__PURE__ */ a("div", { className: "lg:col-span-2", children: /* @__PURE__ */ d("div", { className: "flex flex-col gap-ds-05 rounded-ds-xl border border-surface-border-strong bg-surface-
|
|
21
|
+
/* @__PURE__ */ a("div", { className: "lg:col-span-2", children: /* @__PURE__ */ d("div", { className: "flex flex-col gap-ds-05 rounded-ds-xl border border-surface-border-strong bg-surface-raised p-ds-06", children: [
|
|
22
22
|
/* @__PURE__ */ a(s, { className: e("h-5 w-40", r) }),
|
|
23
23
|
/* @__PURE__ */ a("div", { className: "flex flex-col gap-ds-04", children: Array.from({ length: 4 }).map((n, l) => /* @__PURE__ */ d("div", { className: "flex items-center gap-ds-04", children: [
|
|
24
24
|
/* @__PURE__ */ a(s, { className: e("h-ico-sm w-ico-sm rounded", r) }),
|
|
@@ -26,7 +26,7 @@ const r = "bg-surface-3", C = o.forwardRef(
|
|
|
26
26
|
/* @__PURE__ */ a(s, { className: e("h-5 w-16 rounded-ds-full", r) })
|
|
27
27
|
] }, `ds-main-${l}`)) })
|
|
28
28
|
] }) }),
|
|
29
|
-
/* @__PURE__ */ d("div", { className: "flex flex-col gap-ds-05 rounded-ds-xl border border-surface-border-strong bg-surface-
|
|
29
|
+
/* @__PURE__ */ d("div", { className: "flex flex-col gap-ds-05 rounded-ds-xl border border-surface-border-strong bg-surface-raised p-ds-06", children: [
|
|
30
30
|
/* @__PURE__ */ a(s, { className: e("h-5 w-28", r) }),
|
|
31
31
|
/* @__PURE__ */ a("div", { className: "flex flex-col gap-ds-04", children: Array.from({ length: 3 }).map((n, l) => /* @__PURE__ */ d("div", { className: "flex items-center gap-ds-04", children: [
|
|
32
32
|
/* @__PURE__ */ a(s, { className: e("h-ds-sm w-ds-sm rounded-ds-full", r) }),
|
|
@@ -36,7 +36,7 @@ const r = "bg-surface-3", C = o.forwardRef(
|
|
|
36
36
|
] })
|
|
37
37
|
] }, `ds-side-${l}`)) })
|
|
38
38
|
] }),
|
|
39
|
-
/* @__PURE__ */ a("div", { className: "lg:col-span-3", children: /* @__PURE__ */ d("div", { className: "flex flex-col gap-ds-05 rounded-ds-xl border border-surface-border-strong bg-surface-
|
|
39
|
+
/* @__PURE__ */ a("div", { className: "lg:col-span-3", children: /* @__PURE__ */ d("div", { className: "flex flex-col gap-ds-05 rounded-ds-xl border border-surface-border-strong bg-surface-raised p-ds-06", children: [
|
|
40
40
|
/* @__PURE__ */ d("div", { className: "flex items-center justify-between", children: [
|
|
41
41
|
/* @__PURE__ */ a(s, { className: e("h-5 w-36", r) }),
|
|
42
42
|
/* @__PURE__ */ a(s, { className: e("h-ds-sm w-24 rounded-ds-lg", r) })
|
|
@@ -54,14 +54,14 @@ const r = "bg-surface-3", C = o.forwardRef(
|
|
|
54
54
|
`ds-card-${l}`
|
|
55
55
|
)) })
|
|
56
56
|
] }) }),
|
|
57
|
-
/* @__PURE__ */ a("div", { className: "lg:col-span-2", children: /* @__PURE__ */ d("div", { className: "flex flex-col gap-ds-05 rounded-ds-xl border border-surface-border-strong bg-surface-
|
|
57
|
+
/* @__PURE__ */ a("div", { className: "lg:col-span-2", children: /* @__PURE__ */ d("div", { className: "flex flex-col gap-ds-05 rounded-ds-xl border border-surface-border-strong bg-surface-raised p-ds-06", children: [
|
|
58
58
|
/* @__PURE__ */ a(s, { className: e("h-5 w-24", r) }),
|
|
59
59
|
/* @__PURE__ */ a("div", { className: "grid grid-cols-2 gap-ds-05 sm:grid-cols-4", children: Array.from({ length: 4 }).map((n, l) => /* @__PURE__ */ d("div", { className: "flex flex-col gap-ds-03", children: [
|
|
60
60
|
/* @__PURE__ */ a(s, { className: e("h-3 w-16", r) }),
|
|
61
61
|
/* @__PURE__ */ a(s, { className: e("h-6 w-ds-lg", r) })
|
|
62
62
|
] }, `ds-stat-${l}`)) })
|
|
63
63
|
] }) }),
|
|
64
|
-
/* @__PURE__ */ d("div", { className: "flex flex-col gap-ds-05 rounded-ds-xl border border-surface-border-strong bg-surface-
|
|
64
|
+
/* @__PURE__ */ d("div", { className: "flex flex-col gap-ds-05 rounded-ds-xl border border-surface-border-strong bg-surface-raised p-ds-06", children: [
|
|
65
65
|
/* @__PURE__ */ a(s, { className: e("h-5 w-20", r) }),
|
|
66
66
|
/* @__PURE__ */ a("div", { className: "flex flex-col gap-ds-05", children: Array.from({ length: 3 }).map((n, l) => /* @__PURE__ */ d("div", { className: "flex gap-ds-04", children: [
|
|
67
67
|
/* @__PURE__ */ a(s, { className: e("h-3 w-3 shrink-0 rounded-ds-full", r) }),
|
|
@@ -82,7 +82,7 @@ const B = o.forwardRef(
|
|
|
82
82
|
/* @__PURE__ */ a("div", { className: "grid grid-cols-1 gap-ds-05 sm:grid-cols-3", children: Array.from({ length: 3 }).map((n, l) => /* @__PURE__ */ d(
|
|
83
83
|
"div",
|
|
84
84
|
{
|
|
85
|
-
className: "flex flex-col gap-ds-04 rounded-ds-xl border border-surface-border-strong bg-surface-
|
|
85
|
+
className: "flex flex-col gap-ds-04 rounded-ds-xl border border-surface-border-strong bg-surface-raised p-ds-05b",
|
|
86
86
|
children: [
|
|
87
87
|
/* @__PURE__ */ a(s, { className: e("h-3 w-24", r) }),
|
|
88
88
|
/* @__PURE__ */ a(s, { className: e("h-ds-xs-plus w-16", r) }),
|
|
@@ -92,7 +92,7 @@ const B = o.forwardRef(
|
|
|
92
92
|
`bw-card-${l}`
|
|
93
93
|
)) }),
|
|
94
94
|
/* @__PURE__ */ d("div", { className: "overflow-hidden rounded-ds-xl border border-surface-border-strong", children: [
|
|
95
|
-
/* @__PURE__ */ a("div", { className: "flex items-center gap-ds-05 border-b border-surface-border-strong bg-surface-
|
|
95
|
+
/* @__PURE__ */ a("div", { className: "flex items-center gap-ds-05 border-b border-surface-border-strong bg-surface-raised px-ds-05b py-ds-04", children: Array.from({ length: 5 }).map((n, l) => /* @__PURE__ */ a(
|
|
96
96
|
s,
|
|
97
97
|
{
|
|
98
98
|
className: e(
|