@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.
- package/dist/_chunks/primitives.js +64 -64
- package/dist/_chunks/sidebar.js +1 -1
- package/dist/_chunks/switch.js +10 -0
- package/dist/_chunks/tooltip.js +3 -3
- package/dist/shell/notification-preferences.js +13 -12
- package/dist/ui/index.js +255 -254
- package/dist/ui/menubar.js +19 -19
- package/dist/ui/navigation-menu.js +7 -7
- package/dist/ui/popover.js +1 -1
- package/dist/ui/progress.js +1 -1
- package/dist/ui/select.js +5 -5
- package/dist/ui/separator.js +1 -1
- package/dist/ui/slider.js +1 -1
- package/dist/ui/switch.js +1 -1
- package/dist/ui/toast.js +3 -3
- package/dist/ui/toggle-group.js +1 -1
- package/dist/ui/toggle.js +1 -1
- package/dist/ui/tooltip.js +4 -4
- package/package.json +656 -656
- package/dist/_chunks/card.js +0 -40
|
@@ -6848,7 +6848,7 @@ export {
|
|
|
6848
6848
|
kg as Z,
|
|
6849
6849
|
$g as _,
|
|
6850
6850
|
Xm as a,
|
|
6851
|
-
|
|
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
|
-
|
|
6863
|
-
|
|
6864
|
-
|
|
6865
|
-
|
|
6866
|
-
|
|
6867
|
-
|
|
6868
|
-
|
|
6869
|
-
|
|
6870
|
-
|
|
6871
|
-
|
|
6872
|
-
|
|
6873
|
-
|
|
6874
|
-
|
|
6875
|
-
|
|
6876
|
-
|
|
6877
|
-
|
|
6878
|
-
|
|
6879
|
-
|
|
6880
|
-
|
|
6881
|
-
|
|
6882
|
-
|
|
6883
|
-
|
|
6884
|
-
|
|
6885
|
-
|
|
6886
|
-
|
|
6887
|
-
|
|
6888
|
-
|
|
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
|
-
|
|
6901
|
-
|
|
6902
|
-
|
|
6903
|
-
|
|
6904
|
-
|
|
6905
|
-
|
|
6906
|
-
|
|
6907
|
-
|
|
6908
|
-
|
|
6909
|
-
|
|
6910
|
-
|
|
6911
|
-
|
|
6912
|
-
|
|
6913
|
-
|
|
6914
|
-
|
|
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
|
-
|
|
6917
|
-
|
|
6918
|
-
|
|
6919
|
-
|
|
6920
|
-
|
|
6921
|
-
|
|
6922
|
-
|
|
6923
|
-
|
|
6924
|
-
|
|
6925
|
-
|
|
6926
|
-
|
|
6927
|
-
|
|
6928
|
-
|
|
6929
|
-
|
|
6930
|
-
|
|
6931
|
-
|
|
6932
|
-
|
|
6933
|
-
|
|
6934
|
-
|
|
6935
|
-
|
|
6936
|
-
|
|
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,
|
package/dist/_chunks/sidebar.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as r, jsxs as x } from "react/jsx-runtime";
|
|
3
|
-
import {
|
|
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
|
+
};
|
package/dist/_chunks/tooltip.js
CHANGED
|
@@ -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 {
|
|
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
|
|
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
|
|
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 {
|
|
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,
|
|
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
|
-
}),
|
|
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
|
|
49
|
-
return (
|
|
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: () =>
|
|
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,
|
|
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
|
-
|
|
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:
|
|
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,
|
|
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
|
-
|
|
163
|
+
a(!1), F();
|
|
163
164
|
},
|
|
164
165
|
children: "Cancel"
|
|
165
166
|
}
|