@devalok/shilp-sutra 0.17.1 → 0.17.2

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.
@@ -6848,7 +6848,7 @@ export {
6848
6848
  kg as Z,
6849
6849
  $g as _,
6850
6850
  Xm as a,
6851
- jh as a$,
6851
+ sC as a$,
6852
6852
  Kg as a0,
6853
6853
  Ug as a1,
6854
6854
  Bg as a2,
@@ -6859,33 +6859,33 @@ export {
6859
6859
  Lg as a7,
6860
6860
  Vg as a8,
6861
6861
  Wg as a9,
6862
- bh as aA,
6863
- yh as aB,
6864
- Rh as aC,
6865
- Eh as aD,
6866
- Ph as aE,
6867
- xh as aF,
6868
- Sh as aG,
6869
- Th as aH,
6870
- Mh as aI,
6871
- Ah as aJ,
6872
- Dh as aK,
6873
- Ih as aL,
6874
- Nh as aM,
6875
- _h as aN,
6876
- Oh as aO,
6877
- kh as aP,
6878
- $h as aQ,
6879
- Lh as aR,
6880
- Fh as aS,
6881
- vg as aT,
6882
- Gh as aU,
6883
- Kh as aV,
6884
- Wh as aW,
6885
- Yh as aX,
6886
- aC as aY,
6887
- sC as aZ,
6888
- Xh as a_,
6862
+ fh as aA,
6863
+ ih as aB,
6864
+ bh as aC,
6865
+ yh as aD,
6866
+ Rh as aE,
6867
+ Eh as aF,
6868
+ Ph as aG,
6869
+ xh as aH,
6870
+ Sh as aI,
6871
+ Th as aJ,
6872
+ Mh as aK,
6873
+ Ah as aL,
6874
+ Dh as aM,
6875
+ Ih as aN,
6876
+ Nh as aO,
6877
+ _h as aP,
6878
+ Oh as aQ,
6879
+ kh as aR,
6880
+ $h as aS,
6881
+ Lh as aT,
6882
+ Fh as aU,
6883
+ vg as aV,
6884
+ Gh as aW,
6885
+ Kh as aX,
6886
+ Wh as aY,
6887
+ Yh as aZ,
6888
+ aC as a_,
6889
6889
  ud as aa,
6890
6890
  ld as ab,
6891
6891
  dd as ac,
@@ -6897,43 +6897,43 @@ export {
6897
6897
  eh as ai,
6898
6898
  th as aj,
6899
6899
  oh as ak,
6900
- sh as al,
6901
- ch as am,
6902
- hh as an,
6903
- Ch as ao,
6904
- lh as ap,
6905
- uh as aq,
6906
- dh as ar,
6907
- ph as as,
6908
- vh as at,
6909
- gh as au,
6910
- mh as av,
6911
- wh as aw,
6912
- ah as ax,
6913
- fh as ay,
6914
- ih as az,
6900
+ nh as al,
6901
+ rh as am,
6902
+ sh as an,
6903
+ ch as ao,
6904
+ hh as ap,
6905
+ Ch as aq,
6906
+ lh as ar,
6907
+ uh as as,
6908
+ dh as at,
6909
+ ph as au,
6910
+ vh as av,
6911
+ gh as aw,
6912
+ mh as ax,
6913
+ wh as ay,
6914
+ ah as az,
6915
6915
  Dd as b,
6916
- Jh as b0,
6917
- Qh as b1,
6918
- oC as b2,
6919
- tC as b3,
6920
- Zh as b4,
6921
- nC as b5,
6922
- qh as b6,
6923
- zh as b7,
6924
- eC as b8,
6925
- rC as b9,
6926
- iC as ba,
6927
- cC as bb,
6928
- uC as bc,
6929
- pC as bd,
6930
- vC as be,
6931
- fC as bf,
6932
- lC as bg,
6933
- dC as bh,
6934
- Qg as bi,
6935
- nh as bj,
6936
- rh as bk,
6916
+ Xh as b0,
6917
+ jh as b1,
6918
+ Jh as b2,
6919
+ Qh as b3,
6920
+ oC as b4,
6921
+ tC as b5,
6922
+ Zh as b6,
6923
+ nC as b7,
6924
+ qh as b8,
6925
+ zh as b9,
6926
+ eC as ba,
6927
+ rC as bb,
6928
+ iC as bc,
6929
+ cC as bd,
6930
+ uC as be,
6931
+ pC as bf,
6932
+ vC as bg,
6933
+ fC as bh,
6934
+ lC as bi,
6935
+ dC as bj,
6936
+ Qg as bk,
6937
6937
  Bh as bl,
6938
6938
  Uh as bm,
6939
6939
  Hh as bn,
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  import { jsx as r, jsxs as x } from "react/jsx-runtime";
3
- import { bi as I, S as v } from "./primitives.js";
3
+ import { bk as I, S as v } from "./primitives.js";
4
4
  import { e as z } from "./vendor-utils.js";
5
5
  import { IconLayoutSidebarLeftCollapse as O } from "@tabler/icons-react";
6
6
  import { useIsMobile as G } from "../hooks/use-mobile.js";
@@ -0,0 +1,10 @@
1
+ "use client";
2
+ import { jsx as e } from "react/jsx-runtime";
3
+ import * as n from "react";
4
+ import { al as o, am as d } from "./primitives.js";
5
+ import { c as r } from "./utils.js";
6
+ const c = n.forwardRef(({ className: a, error: t, ...s }, i) => e(o, { className: r("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-ds-full border-2 border-transparent shadow-01 transition-colors duration-fast-01 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-[0.38] data-[state=checked]:bg-interactive data-[state=unchecked]:bg-border-strong", t && "border-border-error data-[state=checked]:bg-error", a), ...s, ref: i, children: e(d, { className: r("pointer-events-none block h-ico-md w-ico-md rounded-ds-full bg-text-on-color shadow-02 ring-0 transition-transform duration-moderate-01 ease-bounce data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0") }) }));
7
+ c.displayName = o.displayName;
8
+ export {
9
+ c as S
10
+ };
@@ -1,12 +1,12 @@
1
1
  "use client";
2
2
  import { jsx as t } from "react/jsx-runtime";
3
3
  import * as d from "react";
4
- import { aO as r, aP as n, aQ as m, aR as l, aS as o } from "./primitives.js";
4
+ import { aQ as r, aR as n, aS as m, aT as l, aU as o } from "./primitives.js";
5
5
  import { c as f } from "./utils.js";
6
- const T = r, u = n, b = m, p = d.forwardRef(({ className: a, sideOffset: e = 4, ...s }, i) => t(l, { children: t(o, { ref: i, sideOffset: e, className: f("z-tooltip overflow-hidden rounded-ds-md bg-text-primary px-ds-04 py-ds-02b text-ds-sm text-text-inverse shadow-02 duration-fast-02 ease-productive-entrance animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2", a), ...s }) }));
6
+ const x = r, u = n, b = m, p = d.forwardRef(({ className: a, sideOffset: e = 4, ...s }, i) => t(l, { children: t(o, { ref: i, sideOffset: e, className: f("z-tooltip overflow-hidden rounded-ds-md bg-text-primary px-ds-04 py-ds-02b text-ds-sm text-text-inverse shadow-02 duration-fast-02 ease-productive-entrance animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2", a), ...s }) }));
7
7
  p.displayName = o.displayName;
8
8
  export {
9
- T,
9
+ x as T,
10
10
  u as a,
11
11
  b,
12
12
  p as c
@@ -1,10 +1,11 @@
1
1
  "use client";
2
2
  import { jsxs as t, Fragment as M, jsx as e } from "react/jsx-runtime";
3
- import { useState as n } from "react";
3
+ import { useState as i } from "react";
4
4
  import { B as b } from "../_chunks/button.js";
5
5
  import { Select as d, SelectTrigger as o, SelectValue as m, SelectContent as h, SelectItem as s } from "../ui/select.js";
6
6
  import { Dialog as V, DialogContent as D, DialogHeader as z, DialogTitle as q, DialogDescription as J } from "../ui/dialog.js";
7
- import { C as K, a as Q, b as W, c as X, S as k } from "../_chunks/card.js";
7
+ import { S as k } from "../_chunks/switch.js";
8
+ import { Card as K, CardHeader as Q, CardTitle as W, CardContent as X } from "../ui/card.js";
8
9
  import { IconPlus as Y, IconTrash as Z, IconMessage as $, IconBell as U } from "@tabler/icons-react";
9
10
  import { c as ee } from "../_chunks/utils.js";
10
11
  const _ = {
@@ -25,7 +26,7 @@ function le({
25
26
  onDelete: p,
26
27
  className: T
27
28
  }) {
28
- const [E, i] = n(!1), [N, C] = n("global"), [I, w] = n("IN_APP"), [y, A] = n("INFO"), [P, S] = n(!1), [j, O] = n(!1), R = async () => {
29
+ const [E, a] = i(!1), [N, C] = i("global"), [I, w] = i("IN_APP"), [y, A] = i("INFO"), [P, S] = i(!1), [j, O] = i(!1), R = async () => {
29
30
  if (g) {
30
31
  O(!0);
31
32
  try {
@@ -34,7 +35,7 @@ function le({
34
35
  channel: I,
35
36
  minTier: y,
36
37
  muted: P
37
- }), i(!1), F();
38
+ }), a(!1), F();
38
39
  } catch (l) {
39
40
  console.error("[Preferences] Failed to save:", l);
40
41
  } finally {
@@ -45,8 +46,8 @@ function le({
45
46
  C("global"), w("IN_APP"), A("INFO"), S(!1);
46
47
  }, B = (l) => {
47
48
  if (!l) return "Global (all projects)";
48
- const a = v.find((c) => c.id === l);
49
- return (a == null ? void 0 : a.title) || "Unknown project";
49
+ const n = v.find((c) => c.id === l);
50
+ return (n == null ? void 0 : n.title) || "Unknown project";
50
51
  };
51
52
  return /* @__PURE__ */ t(M, { children: [
52
53
  /* @__PURE__ */ t(K, { className: T, children: [
@@ -57,7 +58,7 @@ function le({
57
58
  {
58
59
  size: "sm",
59
60
  variant: "outline",
60
- onClick: () => i(!0),
61
+ onClick: () => a(!0),
61
62
  children: [
62
63
  /* @__PURE__ */ e(Y, { className: "mr-ds-02b h-ico-sm w-ico-sm" }),
63
64
  "Add Rule"
@@ -65,14 +66,14 @@ function le({
65
66
  }
66
67
  )
67
68
  ] }),
68
- /* @__PURE__ */ e(X, { children: L ? /* @__PURE__ */ e("div", { className: "flex items-center justify-center py-ds-07", children: /* @__PURE__ */ e("div", { className: "h-ico-md w-ico-md animate-spin rounded-ds-full border-2 border-border border-t-interactive" }) }) : f.length === 0 ? /* @__PURE__ */ e("div", { className: "py-ds-07 text-center", children: /* @__PURE__ */ e("p", { className: "text-ds-md text-text-placeholder", children: "No custom preferences set. All notifications are delivered by default." }) }) : /* @__PURE__ */ e("div", { className: "flex flex-col", children: f.map((l, a) => {
69
+ /* @__PURE__ */ e(X, { children: L ? /* @__PURE__ */ e("div", { className: "flex items-center justify-center py-ds-07", children: /* @__PURE__ */ e("div", { className: "h-ico-md w-ico-md animate-spin rounded-ds-full border-2 border-border border-t-interactive" }) }) : f.length === 0 ? /* @__PURE__ */ e("div", { className: "py-ds-07 text-center", children: /* @__PURE__ */ e("p", { className: "text-ds-md text-text-placeholder", children: "No custom preferences set. All notifications are delivered by default." }) }) : /* @__PURE__ */ e("div", { className: "flex flex-col", children: f.map((l, n) => {
69
70
  const c = _[l.channel] || _.IN_APP;
70
71
  return /* @__PURE__ */ t(
71
72
  "div",
72
73
  {
73
74
  className: ee(
74
75
  "flex items-center gap-ds-05 py-ds-04",
75
- a < f.length - 1 && "border-b border-border"
76
+ n < f.length - 1 && "border-b border-border"
76
77
  ),
77
78
  children: [
78
79
  /* @__PURE__ */ e("div", { className: "flex h-ds-sm w-ds-sm shrink-0 items-center justify-center rounded-ds-lg bg-layer-02", children: /* @__PURE__ */ e("span", { className: "[&>svg]:h-ico-sm [&>svg]:w-ico-sm text-text-secondary", "aria-hidden": "true", children: c.icon }) }),
@@ -116,7 +117,7 @@ function le({
116
117
  );
117
118
  }) }) })
118
119
  ] }),
119
- /* @__PURE__ */ e(V, { open: E, onOpenChange: i, children: /* @__PURE__ */ t(D, { className: "sm:max-w-md", children: [
120
+ /* @__PURE__ */ e(V, { open: E, onOpenChange: a, children: /* @__PURE__ */ t(D, { className: "sm:max-w-md", children: [
120
121
  /* @__PURE__ */ t(z, { children: [
121
122
  /* @__PURE__ */ e(q, { children: "Add Notification Rule" }),
122
123
  /* @__PURE__ */ e(J, { children: "Customize how you receive notifications for a specific channel and project." })
@@ -146,7 +147,7 @@ function le({
146
147
  /* @__PURE__ */ e("label", { htmlFor: "pref-min-tier", className: "text-ds-sm font-medium text-text-secondary", children: "Minimum Tier" }),
147
148
  /* @__PURE__ */ t(d, { value: y, onValueChange: A, children: [
148
149
  /* @__PURE__ */ e(o, { id: "pref-min-tier", children: /* @__PURE__ */ e(m, {}) }),
149
- /* @__PURE__ */ e(h, { children: Object.entries(G).map(([l, a]) => /* @__PURE__ */ e(s, { value: l, children: a }, l)) })
150
+ /* @__PURE__ */ e(h, { children: Object.entries(G).map(([l, n]) => /* @__PURE__ */ e(s, { value: l, children: n }, l)) })
150
151
  ] })
151
152
  ] }),
152
153
  /* @__PURE__ */ t("div", { className: "flex items-center justify-between", children: [
@@ -159,7 +160,7 @@ function le({
159
160
  {
160
161
  variant: "ghost",
161
162
  onClick: () => {
162
- i(!1), F();
163
+ a(!1), F();
163
164
  },
164
165
  children: "Cancel"
165
166
  }