@devalok/shilp-sutra-karm 0.20.1 → 0.20.3

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.
@@ -200,7 +200,7 @@ const z = w.forwardRef(
200
200
  "button",
201
201
  {
202
202
  onClick: c,
203
- className: "flex items-center gap-ds-02b rounded-ds-lg px-ds-03 py-ds-02b text-surface-fg-muted transition-colors hover:bg-surface-2",
203
+ className: "flex items-center gap-ds-02b rounded-ds-lg px-ds-03 py-ds-02b text-surface-fg-muted transition-colors hover:bg-surface-3",
204
204
  children: [
205
205
  /* @__PURE__ */ e(E, { className: "h-ico-sm w-ico-sm" }),
206
206
  /* @__PURE__ */ e("span", { className: "text-ds-sm", children: "New Chat" })
@@ -215,8 +215,8 @@ const z = w.forwardRef(
215
215
  "div",
216
216
  {
217
217
  className: x(
218
- "group flex items-center gap-ds-04 border-b border-surface-border px-ds-05 py-ds-04 transition-colors hover:bg-surface-2",
219
- d === t.id && "bg-surface-2"
218
+ "group flex items-center gap-ds-04 border-b border-surface-border px-ds-05 py-ds-04 transition-colors hover:bg-surface-3",
219
+ d === t.id && "bg-surface-3"
220
220
  ),
221
221
  children: [
222
222
  /* @__PURE__ */ s(
@@ -230,7 +230,7 @@ const z = w.forwardRef(
230
230
  ]
231
231
  }
232
232
  ),
233
- /* @__PURE__ */ s("div", { className: "flex shrink-0 items-center gap-ds-02 opacity-0 transition-opacity group-hover:opacity-100", children: [
233
+ /* @__PURE__ */ s("div", { className: "flex shrink-0 items-center gap-ds-02 opacity-0 transition-opacity duration-fast-01 group-hover:opacity-100", children: [
234
234
  u && /* @__PURE__ */ e(
235
235
  "button",
236
236
  {
@@ -801,7 +801,7 @@ const Je = P.forwardRef(({ column: t, index: s, className: n, ...r }, c) => {
801
801
  variant: "ghost",
802
802
  size: "icon-md",
803
803
  className: N(
804
- "h-ds-xs w-ds-xs flex-shrink-0 opacity-0 transition-opacity",
804
+ "h-ds-xs w-ds-xs flex-shrink-0 opacity-0 transition-opacity duration-fast-02",
805
805
  "group-hover/header:opacity-100 focus:opacity-100",
806
806
  "hover:bg-accent-2 hover:text-accent-11"
807
807
  ),
@@ -818,7 +818,7 @@ const Je = P.forwardRef(({ column: t, index: s, className: n, ...r }, c) => {
818
818
  variant: "ghost",
819
819
  size: "icon-md",
820
820
  className: N(
821
- "h-ds-xs w-ds-xs flex-shrink-0 opacity-0 transition-opacity",
821
+ "h-ds-xs w-ds-xs flex-shrink-0 opacity-0 transition-opacity duration-fast-02",
822
822
  "group-hover/header:opacity-100 focus:opacity-100"
823
823
  ),
824
824
  "aria-label": "Column options",
@@ -1136,7 +1136,7 @@ const et = {
1136
1136
  HIGH: Ge,
1137
1137
  URGENT: Ne
1138
1138
  }, ps = ze(
1139
- "group/card relative rounded-ds-lg border border-transparent bg-surface-3 pl-3 pr-ds-03 py-ds-03 transition-all duration-100 ease-out cursor-pointer",
1139
+ "group/card relative rounded-ds-lg border border-transparent bg-surface-3 pl-3 pr-ds-03 py-ds-03 transition-[box-shadow,border-color,transform] duration-fast-02 ease-productive-standard cursor-pointer",
1140
1140
  {
1141
1141
  variants: {
1142
1142
  state: {
@@ -1218,7 +1218,7 @@ function st({
1218
1218
  se.div,
1219
1219
  {
1220
1220
  className: N(
1221
- "absolute -top-2 -left-2 z-10 transition-opacity",
1221
+ "absolute -top-2 -left-2 z-10 transition-opacity duration-fast-02",
1222
1222
  g || x ? "opacity-100" : "opacity-0 group-hover/card:opacity-100"
1223
1223
  ),
1224
1224
  initial: g || x ? { scale: 0.85 } : !1,
@@ -1244,7 +1244,7 @@ function st({
1244
1244
  "button",
1245
1245
  {
1246
1246
  className: N(
1247
- "flex-shrink-0 cursor-grab rounded p-ds-01 opacity-0 transition-opacity",
1247
+ "flex-shrink-0 cursor-grab rounded p-ds-01 opacity-0 transition-opacity duration-fast-02",
1248
1248
  "group-hover/card:opacity-action-disabled hover:!opacity-100",
1249
1249
  "active:cursor-grabbing",
1250
1250
  n && "opacity-action-disabled"
@@ -1353,7 +1353,7 @@ const at = P.forwardRef(
1353
1353
  );
1354
1354
  at.displayName = "TaskCard";
1355
1355
  const bs = ze(
1356
- "group/card flex items-center gap-ds-02 py-2 pl-3 pr-ds-03 border border-transparent rounded-ds-lg bg-surface-3 transition-all duration-100 ease-out cursor-pointer hover:bg-surface-4 hover:shadow-02 hover:-translate-y-px",
1356
+ "group/card flex items-center gap-ds-02 py-2 pl-3 pr-ds-03 border border-transparent rounded-ds-lg bg-surface-3 transition-[box-shadow,border-color,transform,background-color] duration-fast-02 ease-productive-standard cursor-pointer hover:bg-surface-4 hover:shadow-02 hover:-translate-y-px",
1357
1357
  {
1358
1358
  variants: {
1359
1359
  selected: {
@@ -1413,7 +1413,7 @@ function nt({
1413
1413
  se.div,
1414
1414
  {
1415
1415
  className: N(
1416
- "absolute -top-1.5 -left-1.5 z-10 transition-opacity",
1416
+ "absolute -top-1.5 -left-1.5 z-10 transition-opacity duration-fast-02",
1417
1417
  x || p ? "opacity-100" : "opacity-0 group-hover/card:opacity-100"
1418
1418
  ),
1419
1419
  initial: x || p ? { scale: 0.85 } : !1,
@@ -1672,7 +1672,7 @@ const ct = P.forwardRef(
1672
1672
  className: N(
1673
1673
  "flex h-full flex-shrink-0 flex-col rounded-ds-xl bg-surface-2 border border-surface-3 hover:border-surface-border transition-colors p-1",
1674
1674
  r && "shadow-04",
1675
- C && "bg-error-3",
1675
+ C && "bg-error-3 ring-1 ring-error-7",
1676
1676
  u
1677
1677
  ),
1678
1678
  ...I,
@@ -6,25 +6,25 @@ import { cn as p } from "@devalok/shilp-sutra/ui/lib/utils";
6
6
  import { Avatar as b, AvatarImage as x, AvatarFallback as g } from "@devalok/shilp-sutra/ui/avatar";
7
7
  import { Badge as v } from "@devalok/shilp-sutra/ui/badge";
8
8
  import { Progress as y } from "@devalok/shilp-sutra/ui/progress";
9
- function N({ accentCss: c }) {
9
+ function N({ accentCss: d }) {
10
10
  return h(() => {
11
- if (!c) return;
12
- const a = document.documentElement, i = c.split(";").map((e) => e.trim()).filter(Boolean), r = [];
11
+ if (!d) return;
12
+ const a = document.documentElement, i = d.split(";").map((e) => e.trim()).filter(Boolean), r = [];
13
13
  for (const e of i) {
14
- const d = e.indexOf(":");
15
- if (d === -1) continue;
16
- const n = e.slice(0, d).trim(), o = e.slice(d + 1).trim();
14
+ const c = e.indexOf(":");
15
+ if (c === -1) continue;
16
+ const n = e.slice(0, c).trim(), o = e.slice(c + 1).trim();
17
17
  n && o && (a.style.setProperty(n, o), r.push(n));
18
18
  }
19
19
  return () => {
20
20
  for (const e of r)
21
21
  a.style.removeProperty(e);
22
22
  };
23
- }, [c]), null;
23
+ }, [d]), null;
24
24
  }
25
25
  N.displayName = "AccentProvider";
26
26
  const j = f.forwardRef(
27
- ({ className: c, orgName: a, orgLogo: i, userName: r, userAvatar: e, children: d, ...n }, o) => {
27
+ ({ className: d, orgName: a, orgLogo: i, userName: r, userAvatar: e, children: c, ...n }, o) => {
28
28
  const l = a.split(" ").map((m) => m[0]).join("").slice(0, 2).toUpperCase(), u = r.split(" ").map((m) => m[0]).join("").slice(0, 2).toUpperCase();
29
29
  return /* @__PURE__ */ s(
30
30
  "header",
@@ -32,7 +32,7 @@ const j = f.forwardRef(
32
32
  ref: o,
33
33
  className: p(
34
34
  "flex h-ds-lg items-center justify-between border-b border-surface-border bg-surface-1 px-ds-06",
35
- c
35
+ d
36
36
  ),
37
37
  ...n,
38
38
  children: [
@@ -48,7 +48,7 @@ const j = f.forwardRef(
48
48
  /* @__PURE__ */ t("span", { className: "font-display text-ds-base font-semibold text-surface-fg", children: a })
49
49
  ] }),
50
50
  /* @__PURE__ */ s("div", { className: "flex items-center gap-ds-04", children: [
51
- d,
51
+ c,
52
52
  /* @__PURE__ */ s("div", { className: "flex items-center gap-ds-03", children: [
53
53
  /* @__PURE__ */ s(b, { className: "h-ds-sm w-ds-sm", children: [
54
54
  e && /* @__PURE__ */ t(x, { src: e, alt: r }),
@@ -63,40 +63,40 @@ const j = f.forwardRef(
63
63
  }
64
64
  );
65
65
  j.displayName = "ClientPortalHeader";
66
- const w = {
66
+ const P = {
67
67
  active: "success",
68
68
  completed: "info",
69
69
  paused: "warning"
70
- }, P = f.forwardRef(
70
+ }, w = f.forwardRef(
71
71
  ({
72
- className: c,
72
+ className: d,
73
73
  name: a,
74
74
  description: i,
75
75
  status: r,
76
76
  taskCount: e = 0,
77
- completedTasks: d = 0,
77
+ completedTasks: c = 0,
78
78
  ...n
79
79
  }, o) => {
80
- const l = e > 0 ? Math.round(d / e * 100) : 0;
80
+ const l = e > 0 ? Math.round(c / e * 100) : 0;
81
81
  return /* @__PURE__ */ s(
82
82
  "div",
83
83
  {
84
84
  ref: o,
85
85
  className: p(
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
- c
86
+ "group cursor-pointer rounded-ds-lg border border-surface-border bg-surface-2 p-ds-05b shadow-01 transition-all duration-200 hover:shadow-02 hover:scale-[1.01]",
87
+ d
88
88
  ),
89
89
  ...n,
90
90
  children: [
91
91
  /* @__PURE__ */ s("div", { className: "mb-ds-04 flex items-start justify-between", children: [
92
92
  /* @__PURE__ */ t("h3", { className: "font-display text-ds-base font-semibold text-surface-fg", children: a }),
93
- /* @__PURE__ */ t(v, { color: w[r], size: "sm", children: r })
93
+ /* @__PURE__ */ t(v, { color: P[r], size: "sm", children: r })
94
94
  ] }),
95
95
  i && /* @__PURE__ */ t("p", { className: "mb-ds-05 line-clamp-2 text-ds-md text-surface-fg-muted", children: i }),
96
96
  /* @__PURE__ */ s("div", { className: "space-y-ds-03", children: [
97
97
  /* @__PURE__ */ s("div", { className: "flex items-center justify-between text-ds-sm text-surface-fg-subtle", children: [
98
98
  /* @__PURE__ */ s("span", { children: [
99
- d,
99
+ c,
100
100
  " / ",
101
101
  e,
102
102
  " tasks"
@@ -113,9 +113,9 @@ const w = {
113
113
  );
114
114
  }
115
115
  );
116
- P.displayName = "ProjectCard";
116
+ w.displayName = "ProjectCard";
117
117
  export {
118
118
  N as A,
119
119
  j as C,
120
- P
120
+ w as P
121
121
  };
@@ -483,7 +483,7 @@ const Ss = _.forwardRef(
483
483
  r.selected && o === "monthly" && "text-surface-fg",
484
484
  // ── DisabledState (visual-only disabled, different from functional disabled) ──
485
485
  r.disabledState && "text-disabled",
486
- r.disabledState && r.today && "bg-disabled text-accent-fg"
486
+ r.disabledState && r.today && "bg-disabled text-surface-fg-muted"
487
487
  );
488
488
  return /* @__PURE__ */ e("div", { ref: b, className: D(v, c), ...h, children: /* @__PURE__ */ a(
489
489
  "div",
@@ -1945,7 +1945,7 @@ const ua = Object.assign(We, {
1945
1945
  {
1946
1946
  "aria-label": "Previous",
1947
1947
  onClick: () => h("prev"),
1948
- className: "rounded-ds-full p-ds-02 hover:bg-surface-2",
1948
+ className: "rounded-ds-full p-ds-02 hover:bg-surface-3",
1949
1949
  children: /* @__PURE__ */ e(Ne, { className: "h-ico-md w-ico-md text-surface-fg-muted" })
1950
1950
  }
1951
1951
  ),
@@ -1954,7 +1954,7 @@ const ua = Object.assign(We, {
1954
1954
  {
1955
1955
  "aria-label": "Next",
1956
1956
  onClick: () => h("next"),
1957
- className: "rounded-ds-full p-ds-02 hover:bg-surface-2",
1957
+ className: "rounded-ds-full p-ds-02 hover:bg-surface-3",
1958
1958
  children: /* @__PURE__ */ e(ye, { className: "h-ico-md w-ico-md text-surface-fg-muted" })
1959
1959
  }
1960
1960
  )
@@ -2039,7 +2039,7 @@ const Ks = _.forwardRef(
2039
2039
  return /* @__PURE__ */ a(
2040
2040
  "div",
2041
2041
  {
2042
- className: "flex w-full flex-row items-center justify-start gap-ds-03 !border-0 text-left hover:bg-surface-3",
2042
+ className: "flex w-full flex-row items-center justify-start gap-ds-03 !border-0 text-left transition-colors duration-fast-01 hover:bg-surface-3",
2043
2043
  children: [
2044
2044
  /* @__PURE__ */ a("div", { className: "flex w-1/6 min-w-[120px] items-center gap-ds-03 p-ds-04", children: [
2045
2045
  /* @__PURE__ */ a(Qe, { className: "h-ds-xs-plus w-ds-xs-plus", children: [
@@ -2751,7 +2751,7 @@ const Gs = _.forwardRef(
2751
2751
  return /* @__PURE__ */ a(
2752
2752
  "div",
2753
2753
  {
2754
- className: "flex w-full items-center hover:bg-surface-3",
2754
+ className: "flex w-full items-center transition-colors duration-fast-01 hover:bg-surface-3",
2755
2755
  children: [
2756
2756
  /* @__PURE__ */ a("div", { className: "flex w-[16%] min-w-[120px] items-center gap-ds-03 overflow-hidden px-ds-04 py-ds-03", children: [
2757
2757
  l[x.userId] ? /* @__PURE__ */ e(
@@ -3534,7 +3534,7 @@ const It = _.forwardRef(
3534
3534
  return /* @__PURE__ */ a(
3535
3535
  "div",
3536
3536
  {
3537
- className: "grid grid-cols-[200px_160px_80px_1fr_1fr_1fr] gap-ds-05 bg-surface-2 py-ds-03 sm:px-ds-06",
3537
+ className: "grid grid-cols-[200px_160px_80px_1fr_1fr_1fr] gap-ds-05 bg-surface-2 py-ds-03 sm:px-ds-06 transition-colors duration-fast-01 hover:bg-surface-3",
3538
3538
  children: [
3539
3539
  /* @__PURE__ */ e("div", { className: "p-ds-03 pl-ds-04 text-surface-fg-muted", children: ((h = c.user) == null ? void 0 : h.name) || "Unknown User" }),
3540
3540
  /* @__PURE__ */ e("div", { className: "w-[160px] p-ds-03 text-surface-fg-muted", children: ie(new Date(c.createdAt)) }),