@devalok/shilp-sutra-karm 0.19.0 → 0.20.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 (95) hide show
  1. package/dist/_chunks/chat-panel.js +8 -8
  2. package/dist/_chunks/project-card.js +1 -1
  3. package/dist/_chunks/render-adjustment-type.js +56 -54
  4. package/dist/_chunks/sidebar-scratchpad.js +719 -331
  5. package/dist/_chunks/task-detail-panel.js +904 -636
  6. package/dist/_chunks/vendor.js +1154 -1123
  7. package/dist/dashboard/index.d.ts +20 -0
  8. package/dist/dashboard/index.d.ts.map +1 -1
  9. package/dist/dashboard/index.js +451 -5
  10. package/dist/dashboard/project-health-card.d.ts +22 -0
  11. package/dist/dashboard/project-health-card.d.ts.map +1 -0
  12. package/dist/dashboard/scratchpad/index.d.ts +13 -0
  13. package/dist/dashboard/scratchpad/index.d.ts.map +1 -0
  14. package/dist/dashboard/scratchpad/scratchpad-add-input.d.ts +11 -0
  15. package/dist/dashboard/scratchpad/scratchpad-add-input.d.ts.map +1 -0
  16. package/dist/dashboard/scratchpad/scratchpad-collapse.d.ts +15 -0
  17. package/dist/dashboard/scratchpad/scratchpad-collapse.d.ts.map +1 -0
  18. package/dist/dashboard/scratchpad/scratchpad-context.d.ts +44 -0
  19. package/dist/dashboard/scratchpad/scratchpad-context.d.ts.map +1 -0
  20. package/dist/dashboard/scratchpad/scratchpad-empty-state.d.ts +13 -0
  21. package/dist/dashboard/scratchpad/scratchpad-empty-state.d.ts.map +1 -0
  22. package/dist/dashboard/scratchpad/scratchpad-filter-toggle.d.ts +7 -0
  23. package/dist/dashboard/scratchpad/scratchpad-filter-toggle.d.ts.map +1 -0
  24. package/dist/dashboard/scratchpad/scratchpad-header.d.ts +9 -0
  25. package/dist/dashboard/scratchpad/scratchpad-header.d.ts.map +1 -0
  26. package/dist/dashboard/scratchpad/scratchpad-item.d.ts +13 -0
  27. package/dist/dashboard/scratchpad/scratchpad-item.d.ts.map +1 -0
  28. package/dist/dashboard/scratchpad/scratchpad-list.d.ts +9 -0
  29. package/dist/dashboard/scratchpad/scratchpad-list.d.ts.map +1 -0
  30. package/dist/dashboard/scratchpad/scratchpad-progress-ring.d.ts +11 -0
  31. package/dist/dashboard/scratchpad/scratchpad-progress-ring.d.ts.map +1 -0
  32. package/dist/dashboard/scratchpad/scratchpad-root.d.ts +8 -0
  33. package/dist/dashboard/scratchpad/scratchpad-root.d.ts.map +1 -0
  34. package/dist/dashboard/scratchpad/scratchpad.d.ts +29 -0
  35. package/dist/dashboard/scratchpad/scratchpad.d.ts.map +1 -0
  36. package/dist/dashboard/scratchpad-widget.d.ts +5 -5
  37. package/dist/dashboard/scratchpad-widget.d.ts.map +1 -1
  38. package/dist/dashboard/sidebar-scratchpad.d.ts +8 -1
  39. package/dist/dashboard/sidebar-scratchpad.d.ts.map +1 -1
  40. package/dist/dashboard/week-heatmap/index.d.ts +10 -0
  41. package/dist/dashboard/week-heatmap/index.d.ts.map +1 -0
  42. package/dist/dashboard/week-heatmap/week-heatmap-context.d.ts +31 -0
  43. package/dist/dashboard/week-heatmap/week-heatmap-context.d.ts.map +1 -0
  44. package/dist/dashboard/week-heatmap/week-heatmap-day-strip.d.ts +7 -0
  45. package/dist/dashboard/week-heatmap/week-heatmap-day-strip.d.ts.map +1 -0
  46. package/dist/dashboard/week-heatmap/week-heatmap-day.d.ts +15 -0
  47. package/dist/dashboard/week-heatmap/week-heatmap-day.d.ts.map +1 -0
  48. package/dist/dashboard/week-heatmap/week-heatmap-progress-bar.d.ts +7 -0
  49. package/dist/dashboard/week-heatmap/week-heatmap-progress-bar.d.ts.map +1 -0
  50. package/dist/dashboard/week-heatmap/week-heatmap-root.d.ts +8 -0
  51. package/dist/dashboard/week-heatmap/week-heatmap-root.d.ts.map +1 -0
  52. package/dist/dashboard/week-heatmap/week-heatmap-streak.d.ts +7 -0
  53. package/dist/dashboard/week-heatmap/week-heatmap-streak.d.ts.map +1 -0
  54. package/dist/dashboard/week-heatmap/week-heatmap-summary.d.ts +7 -0
  55. package/dist/dashboard/week-heatmap/week-heatmap-summary.d.ts.map +1 -0
  56. package/dist/dashboard/week-heatmap/week-heatmap.d.ts +33 -0
  57. package/dist/dashboard/week-heatmap/week-heatmap.d.ts.map +1 -0
  58. package/dist/index.d.ts +1 -1
  59. package/dist/index.d.ts.map +1 -1
  60. package/dist/index.js +63 -62
  61. package/dist/tasks/index.d.ts +1 -0
  62. package/dist/tasks/index.d.ts.map +1 -1
  63. package/dist/tasks/index.js +18 -17
  64. package/dist/tasks/task-action-row/index.d.ts +3 -0
  65. package/dist/tasks/task-action-row/index.d.ts.map +1 -0
  66. package/dist/tasks/task-action-row/task-action-row-checkbox.d.ts +8 -0
  67. package/dist/tasks/task-action-row/task-action-row-checkbox.d.ts.map +1 -0
  68. package/dist/tasks/task-action-row/task-action-row-context.d.ts +21 -0
  69. package/dist/tasks/task-action-row/task-action-row-context.d.ts.map +1 -0
  70. package/dist/tasks/task-action-row/task-action-row-due-date.d.ts +5 -0
  71. package/dist/tasks/task-action-row/task-action-row-due-date.d.ts.map +1 -0
  72. package/dist/tasks/task-action-row/task-action-row-labels.d.ts +8 -0
  73. package/dist/tasks/task-action-row/task-action-row-labels.d.ts.map +1 -0
  74. package/dist/tasks/task-action-row/task-action-row-navigate.d.ts +9 -0
  75. package/dist/tasks/task-action-row/task-action-row-navigate.d.ts.map +1 -0
  76. package/dist/tasks/task-action-row/task-action-row-priority.d.ts +5 -0
  77. package/dist/tasks/task-action-row/task-action-row-priority.d.ts.map +1 -0
  78. package/dist/tasks/task-action-row/task-action-row-project-badge.d.ts +8 -0
  79. package/dist/tasks/task-action-row/task-action-row-project-badge.d.ts.map +1 -0
  80. package/dist/tasks/task-action-row/task-action-row-root.d.ts +14 -0
  81. package/dist/tasks/task-action-row/task-action-row-root.d.ts.map +1 -0
  82. package/dist/tasks/task-action-row/task-action-row-status-badge.d.ts +5 -0
  83. package/dist/tasks/task-action-row/task-action-row-status-badge.d.ts.map +1 -0
  84. package/dist/tasks/task-action-row/task-action-row-title.d.ts +9 -0
  85. package/dist/tasks/task-action-row/task-action-row-title.d.ts.map +1 -0
  86. package/dist/tasks/task-action-row/task-action-row.d.ts +48 -0
  87. package/dist/tasks/task-action-row/task-action-row.d.ts.map +1 -0
  88. package/dist/tasks/task-detail-panel.d.ts.map +1 -1
  89. package/docs/components/dashboard/project-health-card.md +90 -0
  90. package/docs/components/dashboard/scratchpad-widget.md +17 -0
  91. package/docs/components/dashboard/scratchpad.md +151 -0
  92. package/docs/components/dashboard/sidebar-scratchpad.md +29 -5
  93. package/docs/components/dashboard/week-heatmap.md +95 -0
  94. package/docs/components/tasks/task-action-row.md +159 -0
  95. package/package.json +82 -82
@@ -156,7 +156,7 @@ const U = w.forwardRef(
156
156
  },
157
157
  [y]
158
158
  );
159
- return /* @__PURE__ */ s("div", { ref: m, className: x("border-t border-surface-border-strong bg-surface-1 p-ds-04", u), ...o, children: [
159
+ return /* @__PURE__ */ s("div", { ref: m, className: x("border-t border-surface-border-strong bg-surface-2 p-ds-04", u), ...o, children: [
160
160
  /* @__PURE__ */ s("div", { className: "flex items-end gap-ds-03 rounded-ds-xl border border-surface-border-strong bg-surface-3 px-ds-04 py-ds-03", children: [
161
161
  /* @__PURE__ */ e(
162
162
  "textarea",
@@ -299,7 +299,7 @@ const fe = [
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-1 p-0 sm:max-w-[480px] [&>button]:hidden", V),
302
+ className: x("flex w-full flex-col gap-0 border-l border-surface-border-strong bg-surface-2 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-2",
311
+ className: "flex items-center gap-ds-02b rounded-ds-lg px-ds-03 py-ds-02b transition-colors hover:bg-surface-3",
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-2" : "",
323
+ className: u === p.id ? "bg-surface-3" : "",
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-2",
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-3",
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-2",
349
- M ? "bg-surface-2 text-surface-fg" : "text-surface-fg-muted"
348
+ "flex h-ds-sm w-ds-sm items-center justify-center rounded-ds-lg transition-colors hover:bg-surface-3",
349
+ M ? "bg-surface-3 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" })
@@ -356,7 +356,7 @@ const fe = [
356
356
  "button",
357
357
  {
358
358
  onClick: () => d(!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-2",
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-3",
360
360
  "aria-label": "Close chat",
361
361
  children: /* @__PURE__ */ e(le, { className: "h-ico-sm w-ico-sm" })
362
362
  }
@@ -83,7 +83,7 @@ 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-1 p-ds-05b shadow-01 transition-shadow duration-200 hover:shadow-02",
86
+ "group cursor-pointer rounded-ds-lg border border-surface-border bg-surface-2 p-ds-05b shadow-01 transition-shadow duration-200 hover:shadow-02",
87
87
  c
88
88
  ),
89
89
  ...n,
@@ -2,7 +2,7 @@
2
2
  import { jsx as e, jsxs as a, Fragment as Q } from "react/jsx-runtime";
3
3
  import * as _ from "react";
4
4
  import Ee, { useState as B, useEffect as se, useRef as Pe, useCallback as $, Fragment as bs, useReducer as qs, useMemo as Be, createContext as gs, useContext as ws } from "react";
5
- import { g as Us, i as et, j as He, k as st, l as Z, m as O, n as tt, o as Re, p as at, q as Ns, r as Je, t as ys, c as rt, w as ee, x as dt, y as Ds, z as lt, A as ls, B as nt } from "./vendor.js";
5
+ import { j as Us, k as et, l as He, m as st, n as Z, o as O, p as tt, q as Re, r as at, t as Ns, w as Je, x as ys, c as rt, y as ee, z as dt, A as Ds, B as lt, E as ls, F as nt } from "./vendor.js";
6
6
  import { cn as D } from "@devalok/shilp-sutra/ui/lib/utils";
7
7
  import { Skeleton as R } from "@devalok/shilp-sutra/ui/skeleton";
8
8
  import { DropdownMenu as ge, DropdownMenuTrigger as we, DropdownMenuContent as Te, DropdownMenuItem as be } from "@devalok/shilp-sutra/ui/dropdown-menu";
@@ -88,12 +88,12 @@ const Cs = _.forwardRef(
88
88
  ))
89
89
  }
90
90
  ) }),
91
- /* @__PURE__ */ e("div", { className: "w-full p-0 md:p-ds-06", children: /* @__PURE__ */ a("div", { className: "max-md:pt-[16px] flex flex-col items-start overflow-hidden rounded-ds-lg border-0 border-surface-border bg-surface-1 shadow-01 pt-ds-03 md:border max-md:pb-0", children: [
91
+ /* @__PURE__ */ e("div", { className: "w-full p-0 md:p-ds-06", children: /* @__PURE__ */ a("div", { className: "max-md:pt-[16px] flex flex-col items-start overflow-hidden rounded-ds-lg border-0 border-surface-border bg-surface-2 shadow-01 pt-ds-03 md:border max-md:pb-0", children: [
92
92
  /* @__PURE__ */ a("div", { className: "flex w-full items-start border-b-[1px] border-b-surface-border px-ds-06 md:border-b max-md:border-0 max-md:px-0", children: [
93
93
  /* @__PURE__ */ e("div", { className: "text-ds-sm font-semibold uppercase tracking-wider cursor-pointer border-b-[1.5px] border-b-accent-9 px-ds-03 py-ds-04 font-semibold text-surface-fg", children: "REQUESTS(1)" }),
94
94
  /* @__PURE__ */ e("div", { className: "text-ds-sm font-semibold uppercase tracking-wider cursor-pointer px-ds-03 py-ds-04 text-surface-fg-subtle", children: "ATTENDANCE CORRECTION(1)" })
95
95
  ] }),
96
- /* @__PURE__ */ e("div", { className: "flex max-h-[200px] w-full flex-col overflow-y-auto bg-surface-1 px-ds-06 max-md:flex-1 max-md:max-h-none max-md:min-h-[372px] max-md:p-0", children: Array.from({ length: 2 }).map((i, o) => /* @__PURE__ */ a(
96
+ /* @__PURE__ */ e("div", { className: "flex max-h-[200px] w-full flex-col overflow-y-auto bg-surface-2 px-ds-06 max-md:flex-1 max-md:max-h-none max-md:min-h-[372px] max-md:p-0", children: Array.from({ length: 2 }).map((i, o) => /* @__PURE__ */ a(
97
97
  "div",
98
98
  {
99
99
  className: "flex items-center justify-between px-ds-03 py-ds-04",
@@ -700,7 +700,7 @@ const ze = _.forwardRef(
700
700
  }
701
701
  ),
702
702
  /* @__PURE__ */ a("div", { className: "relative flex min-h-[236px] flex-col items-center justify-between rounded-ds-lg md:flex-row", children: [
703
- m && n ? /* @__PURE__ */ e("div", { className: "flex h-full w-full flex-col items-center justify-center px-ds-04 pt-[17px]", children: /* @__PURE__ */ a("div", { className: "w-full gap-ds-05 rounded-ds-md bg-surface-1 shadow-01 px-ds-06 py-ds-07 md:hidden", children: [
703
+ m && n ? /* @__PURE__ */ e("div", { className: "flex h-full w-full flex-col items-center justify-center px-ds-04 pt-[17px]", children: /* @__PURE__ */ a("div", { className: "w-full gap-ds-05 rounded-ds-md bg-surface-2 shadow-01 px-ds-06 py-ds-07 md:hidden", children: [
704
704
  /* @__PURE__ */ a("div", { className: "flex flex-col items-center gap-ds-04", children: [
705
705
  /* @__PURE__ */ e("div", { className: "text-ds-lg font-semibold text-center text-surface-fg", children: "Cancel this break?" }),
706
706
  /* @__PURE__ */ a("div", { className: "text-ds-base max-w-[240px] text-center text-surface-fg-subtle max-md:leading-[100%]", children: [
@@ -748,7 +748,7 @@ const ze = _.forwardRef(
748
748
  className: D("flex w-full flex-col items-center justify-center px-ds-05", m || t.status === "APPROVED" || t.status === "REJECTED" ? "pb-ds-06 pt-[9px]" : "py-ds-06", "md:w-1/2 md:px-ds-06 md:py-ds-05 max-md:pt-[34px]"),
749
749
  children: [
750
750
  /* @__PURE__ */ e("p", { className: "text-ds-sm font-semibold uppercase tracking-wider mb-ds-06 text-surface-fg-subtle max-md:mb-ds-05", children: "Break Status" }),
751
- /* @__PURE__ */ a("div", { className: "mb-ds-04 flex w-full flex-col items-center justify-start gap-ds-04 rounded-ds-2xl border border-surface-border bg-surface-1 shadow-01 px-ds-05 py-ds-04 text-center font-semibold text-surface-fg", children: [
751
+ /* @__PURE__ */ a("div", { className: "mb-ds-04 flex w-full flex-col items-center justify-start gap-ds-04 rounded-ds-2xl border border-surface-border bg-surface-2 shadow-01 px-ds-05 py-ds-04 text-center font-semibold text-surface-fg", children: [
752
752
  Bs(t.status, !1),
753
753
  t.status === "APPROVED" && t.adminComment,
754
754
  t.status === "REJECTED" && t.adminComment
@@ -954,7 +954,7 @@ const Rs = _.forwardRef(
954
954
  Re(/* @__PURE__ */ new Date())
955
955
  ) ? /* @__PURE__ */ a("div", { className: "flex w-full flex-col items-center justify-center p-ds-06", children: [
956
956
  /* @__PURE__ */ e("p", { className: "text-ds-sm font-semibold uppercase tracking-wider mb-ds-05 text-surface-fg-subtle", children: "COMMENT" }),
957
- /* @__PURE__ */ a("div", { className: "flex w-full items-center justify-between rounded-ds-lg border border-surface-border-strong bg-surface-1 px-ds-05 max-md:h-ds-lg", children: [
957
+ /* @__PURE__ */ a("div", { className: "flex w-full items-center justify-between rounded-ds-lg border border-surface-border-strong bg-surface-2 px-ds-05 max-md:h-ds-lg", children: [
958
958
  /* @__PURE__ */ e(
959
959
  "input",
960
960
  {
@@ -982,54 +982,56 @@ const Rs = _.forwardRef(
982
982
  ] }) : /* @__PURE__ */ a("div", { className: "mb-auto flex w-full flex-col md:pr-ds-06", children: [
983
983
  /* @__PURE__ */ e("p", { className: "text-ds-sm font-semibold uppercase tracking-wider mb-ds-06 text-accent-11", children: "Tasks for the day" }),
984
984
  i && /* @__PURE__ */ a(Q, { children: [
985
- /* @__PURE__ */ e("div", { role: "listbox", "aria-label": "Tasks for the day", className: "no-scrollbar mb-ds-03 flex max-h-[250px] flex-col gap-ds-03 overflow-y-auto", children: i.map((E, j) => /* @__PURE__ */ a(
986
- "div",
987
- {
988
- role: "option",
989
- "aria-selected": A === j,
990
- "aria-label": `Task ${j + 1} of ${i.length}: ${E.title}. Use Alt+Arrow keys to reorder.`,
991
- tabIndex: 0,
992
- className: D("task-item mb-ds-03 flex items-center gap-ds-02", A === j ? "dragging" : ""),
993
- draggable: !0,
994
- onDragStart: (P) => K(P, j),
995
- onDragOver: (P) => P.preventDefault(),
996
- onDrop: (P) => z(P, j),
997
- onDragEnter: () => C(j),
998
- onDragLeave: () => C(null),
999
- onDragEnd: (P) => {
1000
- P.target instanceof HTMLElement && P.target.classList.remove("dragging");
1001
- },
1002
- onKeyDown: (P) => {
1003
- P.altKey && P.key === "ArrowUp" && j > 0 ? (P.preventDefault(), x == null || x(E.id, i[j - 1].id)) : P.altKey && P.key === "ArrowDown" && j < i.length - 1 && (P.preventDefault(), x == null || x(E.id, i[j + 1].id));
985
+ /* @__PURE__ */ e("div", { role: "list", "aria-label": "Tasks for the day", className: "no-scrollbar mb-ds-03 flex max-h-[250px] flex-col gap-ds-03 overflow-y-auto", children: i.map((E, j) => (
986
+ // eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions -- listitem is interactive (draggable reorder)
987
+ /* @__PURE__ */ a(
988
+ "div",
989
+ {
990
+ role: "listitem",
991
+ "aria-label": `Task ${j + 1} of ${i.length}: ${E.title}. Use Alt+Arrow keys to reorder.`,
992
+ tabIndex: 0,
993
+ className: D("task-item mb-ds-03 flex items-center gap-ds-02", A === j ? "dragging" : ""),
994
+ draggable: !0,
995
+ onDragStart: (P) => K(P, j),
996
+ onDragOver: (P) => P.preventDefault(),
997
+ onDrop: (P) => z(P, j),
998
+ onDragEnter: () => C(j),
999
+ onDragLeave: () => C(null),
1000
+ onDragEnd: (P) => {
1001
+ P.target instanceof HTMLElement && P.target.classList.remove("dragging");
1002
+ },
1003
+ onKeyDown: (P) => {
1004
+ P.altKey && P.key === "ArrowUp" && j > 0 ? (P.preventDefault(), x == null || x(E.id, i[j - 1].id)) : P.altKey && P.key === "ArrowDown" && j < i.length - 1 && (P.preventDefault(), x == null || x(E.id, i[j + 1].id));
1005
+ },
1006
+ children: [
1007
+ k === j && /* @__PURE__ */ e("div", { className: "drop-indicator" }),
1008
+ E.status === "COMPLETED" ? /* @__PURE__ */ e(ns, { className: "" }) : /* @__PURE__ */ e(ns, {}),
1009
+ /* @__PURE__ */ e(
1010
+ "button",
1011
+ {
1012
+ type: "button",
1013
+ onClick: () => {
1014
+ r == null || r(
1015
+ E.id,
1016
+ E.status === "COMPLETED" ? "TODO" : "COMPLETED"
1017
+ );
1018
+ },
1019
+ "aria-label": E.status === "COMPLETED" ? `Mark "${E.title}" as incomplete` : `Mark "${E.title}" as complete`,
1020
+ className: "cursor-pointer",
1021
+ children: E.status === "COMPLETED" ? /* @__PURE__ */ e(it, { className: "text-accent-12" }) : /* @__PURE__ */ e(ct, {})
1022
+ }
1023
+ ),
1024
+ /* @__PURE__ */ e(
1025
+ "p",
1026
+ {
1027
+ className: D("text-ds-md flex-1 overflow-hidden hyphens-auto break-all pr-ds-05 break-words min-w-0", E.status === "COMPLETED" ? "text-disabled line-through" : "text-surface-fg-muted"),
1028
+ children: E.title
1029
+ }
1030
+ )
1031
+ ]
1004
1032
  },
1005
- children: [
1006
- k === j && /* @__PURE__ */ e("div", { className: "drop-indicator" }),
1007
- E.status === "COMPLETED" ? /* @__PURE__ */ e(ns, { className: "" }) : /* @__PURE__ */ e(ns, {}),
1008
- /* @__PURE__ */ e(
1009
- "button",
1010
- {
1011
- type: "button",
1012
- onClick: () => {
1013
- r == null || r(
1014
- E.id,
1015
- E.status === "COMPLETED" ? "TODO" : "COMPLETED"
1016
- );
1017
- },
1018
- "aria-label": E.status === "COMPLETED" ? `Mark "${E.title}" as incomplete` : `Mark "${E.title}" as complete`,
1019
- className: "cursor-pointer",
1020
- children: E.status === "COMPLETED" ? /* @__PURE__ */ e(it, { className: "text-accent-12" }) : /* @__PURE__ */ e(ct, {})
1021
- }
1022
- ),
1023
- /* @__PURE__ */ e(
1024
- "p",
1025
- {
1026
- className: D("text-ds-md flex-1 overflow-hidden hyphens-auto break-all pr-ds-05 break-words min-w-0", E.status === "COMPLETED" ? "text-disabled line-through" : "text-surface-fg-muted"),
1027
- children: E.title
1028
- }
1029
- )
1030
- ]
1031
- },
1032
- E.id
1033
+ E.id
1034
+ )
1033
1035
  )) }),
1034
1036
  q(new Date(l), /* @__PURE__ */ new Date()) && /* @__PURE__ */ a(
1035
1037
  "form",
@@ -1797,7 +1799,7 @@ const fs = rt(
1797
1799
  const p = (S) => {
1798
1800
  N(S);
1799
1801
  };
1800
- return w.length === 0 && s.length === 0 ? null : /* @__PURE__ */ e("div", { ref: r, className: D("w-full p-0 md:p-ds-06", h), ...b, children: /* @__PURE__ */ a("div", { className: "max-md:pt-[16px] flex flex-col items-start overflow-hidden rounded-ds-lg border-0 border-surface-border bg-surface-1 shadow-01 pt-ds-03 md:border max-md:pb-0", children: [
1802
+ return w.length === 0 && s.length === 0 ? null : /* @__PURE__ */ e("div", { ref: r, className: D("w-full p-0 md:p-ds-06", h), ...b, children: /* @__PURE__ */ a("div", { className: "max-md:pt-[16px] flex flex-col items-start overflow-hidden rounded-ds-lg border-0 border-surface-border bg-surface-2 shadow-01 pt-ds-03 md:border max-md:pb-0", children: [
1801
1803
  /* @__PURE__ */ a("div", { className: "flex w-full items-start border-b-[1px] border-b-surface-border px-ds-06 md:border-b max-md:border-0 max-md:px-0", children: [
1802
1804
  s.length > 0 && /* @__PURE__ */ a(
1803
1805
  "button",