@devalok/shilp-sutra 0.22.3 → 0.23.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 (76) hide show
  1. package/dist/_chunks/tree-view.js +26 -26
  2. package/dist/_chunks/use-calendar.js +106 -106
  3. package/dist/composed/activity-feed.js +10 -10
  4. package/dist/composed/avatar-group.js +37 -37
  5. package/dist/composed/command-palette.js +8 -8
  6. package/dist/composed/content-card.js +10 -10
  7. package/dist/composed/empty-state.js +6 -6
  8. package/dist/composed/error-boundary.js +2 -2
  9. package/dist/composed/loading-skeleton.js +83 -83
  10. package/dist/composed/member-picker.js +6 -6
  11. package/dist/composed/page-skeletons.js +5 -5
  12. package/dist/composed/rich-text-editor.js +63 -63
  13. package/dist/composed/schedule-view.js +26 -26
  14. package/dist/composed/status-badge.js +8 -8
  15. package/dist/shell/bottom-navbar.js +4 -4
  16. package/dist/shell/notification-center.js +29 -29
  17. package/dist/shell/notification-preferences.js +2 -2
  18. package/dist/shell/sidebar.js +6 -6
  19. package/dist/shell/top-bar.js +71 -71
  20. package/dist/tailwind/index.cjs +33 -11
  21. package/dist/tailwind/preset.d.ts.map +1 -1
  22. package/dist/tailwind/preset.js +33 -11
  23. package/dist/tokens/primitives.css +2 -0
  24. package/dist/tokens/semantic.css +83 -14
  25. package/dist/tokens/typography.css +1 -1
  26. package/dist/ui/accordion.js +1 -1
  27. package/dist/ui/alert-dialog.js +32 -32
  28. package/dist/ui/alert.js +12 -12
  29. package/dist/ui/autocomplete.js +16 -16
  30. package/dist/ui/avatar.js +24 -24
  31. package/dist/ui/badge.js +2 -2
  32. package/dist/ui/banner.js +1 -1
  33. package/dist/ui/button.js +8 -8
  34. package/dist/ui/card.d.ts +1 -1
  35. package/dist/ui/card.js +10 -10
  36. package/dist/ui/charts/index.js +312 -312
  37. package/dist/ui/checkbox.js +2 -2
  38. package/dist/ui/chip.js +4 -4
  39. package/dist/ui/code.js +2 -2
  40. package/dist/ui/color-input.js +1 -1
  41. package/dist/ui/combobox.js +37 -37
  42. package/dist/ui/context-menu.js +6 -6
  43. package/dist/ui/data-table-toolbar.js +18 -18
  44. package/dist/ui/data-table.js +132 -132
  45. package/dist/ui/dialog.js +12 -12
  46. package/dist/ui/dropdown-menu.js +67 -67
  47. package/dist/ui/file-upload.js +3 -3
  48. package/dist/ui/hover-card.js +13 -13
  49. package/dist/ui/input-otp.js +9 -9
  50. package/dist/ui/input.js +10 -10
  51. package/dist/ui/menubar.js +33 -33
  52. package/dist/ui/navigation-menu.js +52 -52
  53. package/dist/ui/number-input.js +14 -14
  54. package/dist/ui/pagination.js +25 -25
  55. package/dist/ui/popover.js +17 -17
  56. package/dist/ui/progress.js +1 -1
  57. package/dist/ui/radio.js +2 -2
  58. package/dist/ui/search-input.js +3 -3
  59. package/dist/ui/segmented-control.d.ts +1 -1
  60. package/dist/ui/segmented-control.js +16 -16
  61. package/dist/ui/select.js +17 -17
  62. package/dist/ui/sheet.js +21 -21
  63. package/dist/ui/sidebar.js +13 -13
  64. package/dist/ui/slider.js +2 -2
  65. package/dist/ui/stat-card.js +52 -52
  66. package/dist/ui/stepper.js +1 -1
  67. package/dist/ui/switch.js +11 -11
  68. package/dist/ui/table.js +19 -19
  69. package/dist/ui/tabs.js +2 -2
  70. package/dist/ui/textarea.js +6 -6
  71. package/dist/ui/toast.js +3 -3
  72. package/dist/ui/toggle.js +7 -7
  73. package/dist/ui/tooltip.js +17 -17
  74. package/llms-full.txt +1 -1
  75. package/llms.txt +63 -4
  76. package/package.json +1 -1
package/dist/ui/avatar.js CHANGED
@@ -4,7 +4,7 @@ import * as l from "react";
4
4
  import { F as v, J as N, K as C } from "../_chunks/primitives.js";
5
5
  import { ag as F } from "../_chunks/vendor-utils.js";
6
6
  import { springs as k } from "./lib/motion.js";
7
- import { cn as r } from "./lib/utils.js";
7
+ import { cn as n } from "./lib/utils.js";
8
8
  import { m as f } from "../_chunks/framer.js";
9
9
  const A = l.createContext("circle"), M = l.createContext("md"), p = F(
10
10
  "relative flex shrink-0 overflow-hidden",
@@ -25,12 +25,12 @@ const A = l.createContext("circle"), M = l.createContext("md"), p = F(
25
25
  },
26
26
  defaultVariants: { size: "md", shape: "circle" }
27
27
  }
28
- ), b = {
28
+ ), h = {
29
29
  online: "bg-success-9",
30
- offline: "bg-surface-3",
30
+ offline: "bg-surface-raised-hover",
31
31
  busy: "bg-error-9",
32
32
  away: "bg-warning-9"
33
- }, h = {
33
+ }, b = {
34
34
  online: "Online",
35
35
  offline: "Offline",
36
36
  busy: "Busy",
@@ -69,26 +69,26 @@ function I(o) {
69
69
  let e = 5381;
70
70
  for (let t = 0; t < o.length; t++)
71
71
  e = (e << 5) + e + o.charCodeAt(t) | 0;
72
- const n = Math.abs(e) % w.length;
73
- return w[n];
72
+ const r = Math.abs(e) % w.length;
73
+ return w[r];
74
74
  }
75
- const L = l.forwardRef(({ className: o, size: e, shape: n, status: t, ring: i, badge: s, loading: x, children: d, ...c }, g) => {
76
- const m = n ?? "circle", u = i && i !== "none" ? r("ring-2 ring-offset-2 ring-offset-surface-2", O[i], j[m]) : void 0;
75
+ const L = l.forwardRef(({ className: o, size: e, shape: r, status: t, ring: i, badge: s, loading: x, children: d, ...c }, g) => {
76
+ const m = r ?? "circle", u = i && i !== "none" ? n("ring-2 ring-offset-2 ring-offset-surface-raised", O[i], j[m]) : void 0;
77
77
  if (x)
78
- return /* @__PURE__ */ a("span", { ref: g, className: r("relative inline-flex shrink-0", u), children: /* @__PURE__ */ a(
78
+ return /* @__PURE__ */ a("span", { ref: g, className: n("relative inline-flex shrink-0", u), children: /* @__PURE__ */ a(
79
79
  "span",
80
80
  {
81
- className: r(p({ size: e, shape: n }), "animate-pulse bg-surface-3"),
81
+ className: n(p({ size: e, shape: r }), "animate-pulse bg-surface-raised-hover"),
82
82
  "data-slot": "avatar-skeleton"
83
83
  }
84
84
  ) });
85
85
  const S = s !== void 0 && s !== 0;
86
- return /* @__PURE__ */ a(A.Provider, { value: m, children: /* @__PURE__ */ a(M.Provider, { value: e ?? "md", children: /* @__PURE__ */ R("span", { className: r("relative inline-flex shrink-0", u), children: [
86
+ return /* @__PURE__ */ a(A.Provider, { value: m, children: /* @__PURE__ */ a(M.Provider, { value: e ?? "md", children: /* @__PURE__ */ R("span", { className: n("relative inline-flex shrink-0", u), children: [
87
87
  /* @__PURE__ */ a(
88
88
  v,
89
89
  {
90
90
  ref: g,
91
- className: r(p({ size: e, shape: n }), o),
91
+ className: n(p({ size: e, shape: r }), o),
92
92
  ...c,
93
93
  children: d
94
94
  }
@@ -96,17 +96,17 @@ const L = l.forwardRef(({ className: o, size: e, shape: n, status: t, ring: i, b
96
96
  t && (t === "online" ? /* @__PURE__ */ a(
97
97
  f.span,
98
98
  {
99
- className: r("absolute bottom-0 right-0 rounded-ds-full ring-2 ring-surface-2", b[t], y[e ?? "md"]),
99
+ className: n("absolute bottom-0 right-0 rounded-ds-full ring-2 ring-surface-raised", h[t], y[e ?? "md"]),
100
100
  animate: { opacity: [1, 0.75, 1] },
101
101
  transition: { duration: 2.5, repeat: 1 / 0, ease: "easeInOut" },
102
102
  role: "img",
103
- "aria-label": h[t]
103
+ "aria-label": b[t]
104
104
  }
105
- ) : /* @__PURE__ */ a("span", { className: r("absolute bottom-0 right-0 rounded-ds-full ring-2 ring-surface-2", b[t], y[e ?? "md"]), role: "img", "aria-label": h[t] })),
105
+ ) : /* @__PURE__ */ a("span", { className: n("absolute bottom-0 right-0 rounded-ds-full ring-2 ring-surface-raised", h[t], y[e ?? "md"]), role: "img", "aria-label": b[t] })),
106
106
  S && (s === "dot" ? /* @__PURE__ */ a(
107
107
  "span",
108
108
  {
109
- className: "absolute -right-0.5 -top-0.5 h-[8px] w-[8px] rounded-ds-full bg-error-9 ring-2 ring-surface-2",
109
+ className: "absolute -right-0.5 -top-0.5 h-[8px] w-[8px] rounded-ds-full bg-error-9 ring-2 ring-surface-raised",
110
110
  "data-slot": "avatar-badge-dot",
111
111
  "aria-hidden": "true"
112
112
  }
@@ -116,7 +116,7 @@ const L = l.forwardRef(({ className: o, size: e, shape: n, status: t, ring: i, b
116
116
  initial: { scale: 0 },
117
117
  animate: { scale: 1 },
118
118
  transition: k.bouncy,
119
- className: "absolute -right-1 -top-1 flex min-w-[16px] items-center justify-center rounded-ds-full bg-error-9 px-1 text-[10px] font-bold leading-[16px] text-error-fg ring-2 ring-surface-2",
119
+ className: "absolute -right-1 -top-1 flex min-w-[16px] items-center justify-center rounded-ds-full bg-error-9 px-1 text-[10px] font-bold leading-[16px] text-error-fg ring-2 ring-surface-raised",
120
120
  "data-slot": "avatar-badge",
121
121
  role: "status",
122
122
  "aria-label": `${s > 99 ? "99+" : s} notifications`,
@@ -126,7 +126,7 @@ const L = l.forwardRef(({ className: o, size: e, shape: n, status: t, ring: i, b
126
126
  ] }) }) });
127
127
  });
128
128
  L.displayName = v.displayName;
129
- const B = l.forwardRef(({ className: o, ...e }, n) => /* @__PURE__ */ a(
129
+ const B = l.forwardRef(({ className: o, ...e }, r) => /* @__PURE__ */ a(
130
130
  f.span,
131
131
  {
132
132
  initial: { opacity: 0, scale: 0.96 },
@@ -136,22 +136,22 @@ const B = l.forwardRef(({ className: o, ...e }, n) => /* @__PURE__ */ a(
136
136
  children: /* @__PURE__ */ a(
137
137
  N,
138
138
  {
139
- ref: n,
140
- className: r("aspect-square h-full w-full", o),
139
+ ref: r,
140
+ className: n("aspect-square h-full w-full", o),
141
141
  ...e
142
142
  }
143
143
  )
144
144
  }
145
145
  ));
146
146
  B.displayName = N.displayName;
147
- const z = l.forwardRef(({ className: o, colorSeed: e, children: n, ...t }, i) => {
148
- const s = typeof n == "string" ? n : "", d = I(e ?? s), c = l.useContext(A), g = l.useContext(M), m = c === "square" ? "rounded-ds-none" : c === "rounded" ? "rounded-ds-md" : "rounded-ds-full", u = s.length === 1 ? "tracking-wide" : "tracking-normal";
147
+ const z = l.forwardRef(({ className: o, colorSeed: e, children: r, ...t }, i) => {
148
+ const s = typeof r == "string" ? r : "", d = I(e ?? s), c = l.useContext(A), g = l.useContext(M), m = c === "square" ? "rounded-ds-none" : c === "rounded" ? "rounded-ds-md" : "rounded-ds-full", u = s.length === 1 ? "tracking-wide" : "tracking-normal";
149
149
  return /* @__PURE__ */ a(
150
150
  C,
151
151
  {
152
152
  ref: i,
153
153
  "data-slot": "avatar-fallback",
154
- className: r(
154
+ className: n(
155
155
  "flex h-full w-full items-center justify-center font-semibold",
156
156
  m,
157
157
  q[g],
@@ -161,7 +161,7 @@ const z = l.forwardRef(({ className: o, colorSeed: e, children: n, ...t }, i) =>
161
161
  o
162
162
  ),
163
163
  ...t,
164
- children: n
164
+ children: r
165
165
  }
166
166
  );
167
167
  });
package/dist/ui/badge.js CHANGED
@@ -43,9 +43,9 @@ const x = m(
43
43
  },
44
44
  compoundVariants: [
45
45
  // subtle (surface bg)
46
- { variant: "subtle", color: "default", className: "bg-surface-3 text-surface-fg-muted border-surface-border-strong" },
46
+ { variant: "subtle", color: "default", className: "bg-surface-raised-hover text-surface-fg-muted border-surface-border-strong" },
47
47
  // "secondary" alias → same as subtle + default
48
- { variant: "secondary", color: "default", className: "bg-surface-3 text-surface-fg-muted border-surface-border-strong" },
48
+ { variant: "secondary", color: "default", className: "bg-surface-raised-hover text-surface-fg-muted border-surface-border-strong" },
49
49
  // "destructive" alias → solid + error
50
50
  { variant: "destructive", color: "default", className: "bg-error-9 text-accent-fg border-transparent" },
51
51
  { variant: "destructive", color: "error", className: "bg-error-9 text-accent-fg border-transparent" },
package/dist/ui/banner.js CHANGED
@@ -15,7 +15,7 @@ const _ = N(
15
15
  success: "bg-success-3 border-success-7 text-success-11",
16
16
  warning: "bg-warning-3 border-warning-7 text-warning-11",
17
17
  error: "bg-error-3 border-error-7 text-error-11",
18
- neutral: "bg-surface-2 border-surface-border-strong text-surface-fg [&>svg]:text-surface-fg-muted"
18
+ neutral: "bg-surface-raised border-surface-border-strong text-surface-fg [&>svg]:text-surface-fg-muted"
19
19
  }
20
20
  },
21
21
  defaultVariants: { color: "info" }
package/dist/ui/button.js CHANGED
@@ -40,21 +40,21 @@ const R = K(
40
40
  },
41
41
  compoundVariants: [
42
42
  // solid + default (primary)
43
- { variant: "solid", color: "default", className: "bg-accent-9 text-accent-fg hover:bg-accent-10 active:bg-accent-10 shadow-01 hover:shadow-brand" },
43
+ { variant: "solid", color: "default", className: "bg-accent-9 text-accent-fg hover:bg-accent-10 active:bg-accent-10 shadow-raised hover:shadow-brand" },
44
44
  // "default" alias → same as solid + default
45
- { variant: "default", color: "default", className: "bg-accent-9 text-accent-fg hover:bg-accent-10 active:bg-accent-10 shadow-01 hover:shadow-brand" },
46
- { variant: "default", color: "error", className: "bg-error-9 text-accent-fg hover:bg-error-9 active:bg-error-9 shadow-01" },
45
+ { variant: "default", color: "default", className: "bg-accent-9 text-accent-fg hover:bg-accent-10 active:bg-accent-10 shadow-raised hover:shadow-brand" },
46
+ { variant: "default", color: "error", className: "bg-error-9 text-accent-fg hover:bg-error-9 active:bg-error-9 shadow-raised" },
47
47
  // "destructive" alias → solid + error
48
- { variant: "destructive", color: "default", className: "bg-error-9 text-accent-fg hover:bg-error-9 active:bg-error-9 shadow-01" },
49
- { variant: "destructive", color: "error", className: "bg-error-9 text-accent-fg hover:bg-error-9 active:bg-error-9 shadow-01" },
48
+ { variant: "destructive", color: "default", className: "bg-error-9 text-accent-fg hover:bg-error-9 active:bg-error-9 shadow-raised" },
49
+ { variant: "destructive", color: "error", className: "bg-error-9 text-accent-fg hover:bg-error-9 active:bg-error-9 shadow-raised" },
50
50
  // solid + error
51
- { variant: "solid", color: "error", className: "bg-error-9 text-accent-fg hover:bg-error-9 active:bg-error-9 shadow-01" },
51
+ { variant: "solid", color: "error", className: "bg-error-9 text-accent-fg hover:bg-error-9 active:bg-error-9 shadow-raised" },
52
52
  // outline + default (secondary)
53
- { variant: "outline", color: "default", className: "bg-transparent text-accent-11 border-accent-7 hover:bg-accent-2 active:bg-surface-4" },
53
+ { variant: "outline", color: "default", className: "bg-transparent text-accent-11 border-accent-7 hover:bg-accent-2 active:bg-surface-raised-active" },
54
54
  // outline + error (error-ghost)
55
55
  { variant: "outline", color: "error", className: "bg-transparent text-error-11 border border-error-7 hover:bg-error-3 active:bg-error-3" },
56
56
  // ghost + default
57
- { variant: "ghost", color: "default", className: "bg-transparent text-surface-fg-muted hover:bg-surface-2 hover:text-surface-fg active:bg-surface-4" },
57
+ { variant: "ghost", color: "default", className: "bg-transparent text-surface-fg-muted hover:bg-surface-raised hover:text-surface-fg active:bg-surface-raised-active" },
58
58
  // ghost + error
59
59
  { variant: "ghost", color: "error", className: "bg-transparent text-error-11 hover:bg-error-3 hover:text-error-11 active:bg-error-3" }
60
60
  ],
package/dist/ui/card.d.ts CHANGED
@@ -8,7 +8,7 @@ declare const cardVariants: (props?: ({
8
8
  * Props for Card — a general-purpose content container with 4 elevation/style variants and
9
9
  * an optional interactive hover state.
10
10
  *
11
- * **Variants:** `default` (subtle border + shadow-01) | `elevated` (stronger shadow-02) |
11
+ * **Variants:** `default` (subtle border + shadow-raised) | `elevated` (stronger shadow-raised-hover) |
12
12
  * `outline` (2px solid border, no shadow) | `flat` (filled background, no shadow)
13
13
  *
14
14
  * **Composition:** Use sub-components `<CardHeader>`, `<CardTitle>`, `<CardDescription>`,
package/dist/ui/card.js CHANGED
@@ -10,10 +10,10 @@ const p = f(
10
10
  {
11
11
  variants: {
12
12
  variant: {
13
- default: "bg-surface-2 border border-surface-border shadow-01",
14
- elevated: "bg-surface-2 border border-surface-border shadow-02",
13
+ default: "bg-surface-raised border border-surface-border shadow-raised",
14
+ elevated: "bg-surface-raised border border-surface-border shadow-raised-hover",
15
15
  outline: "bg-transparent border border-surface-border-strong shadow-none",
16
- flat: "bg-surface-2 border-none shadow-none"
16
+ flat: "bg-surface-raised border-none shadow-none"
17
17
  }
18
18
  },
19
19
  defaultVariants: { variant: "default" }
@@ -22,7 +22,7 @@ const p = f(
22
22
  ({ className: a, variant: e, interactive: r, ...t }, n) => {
23
23
  const i = d(
24
24
  p({ variant: e }),
25
- r && "hover:shadow-02 hover:border-surface-border-strong cursor-pointer",
25
+ r && "hover:shadow-raised-hover hover:border-surface-border-strong cursor-pointer transition-shadow duration-fast-02 ease-productive-standard",
26
26
  a
27
27
  );
28
28
  return r ? /* @__PURE__ */ s(
@@ -57,7 +57,7 @@ const v = o.forwardRef(({ className: a, ...e }, r) => /* @__PURE__ */ s(
57
57
  }
58
58
  ));
59
59
  v.displayName = "CardTitle";
60
- const g = o.forwardRef(({ className: a, ...e }, r) => /* @__PURE__ */ s(
60
+ const w = o.forwardRef(({ className: a, ...e }, r) => /* @__PURE__ */ s(
61
61
  "div",
62
62
  {
63
63
  ref: r,
@@ -65,9 +65,9 @@ const g = o.forwardRef(({ className: a, ...e }, r) => /* @__PURE__ */ s(
65
65
  ...e
66
66
  }
67
67
  ));
68
- g.displayName = "CardDescription";
69
- const w = o.forwardRef(({ className: a, ...e }, r) => /* @__PURE__ */ s("div", { ref: r, className: d("p-ds-06 pt-0", a), ...e }));
70
- w.displayName = "CardContent";
68
+ w.displayName = "CardDescription";
69
+ const g = o.forwardRef(({ className: a, ...e }, r) => /* @__PURE__ */ s("div", { ref: r, className: d("p-ds-06 pt-0", a), ...e }));
70
+ g.displayName = "CardContent";
71
71
  const C = o.forwardRef(({ className: a, ...e }, r) => /* @__PURE__ */ s(
72
72
  "div",
73
73
  {
@@ -79,8 +79,8 @@ const C = o.forwardRef(({ className: a, ...e }, r) => /* @__PURE__ */ s(
79
79
  C.displayName = "CardFooter";
80
80
  export {
81
81
  u as Card,
82
- w as CardContent,
83
- g as CardDescription,
82
+ g as CardContent,
83
+ w as CardDescription,
84
84
  C as CardFooter,
85
85
  b as CardHeader,
86
86
  v as CardTitle,