@devalok/shilp-sutra 0.23.3 → 0.25.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.
- package/dist/_chunks/framer.js +946 -672
- package/dist/_chunks/keybinding.js +19 -0
- package/dist/_chunks/stat-row.js +455 -0
- package/dist/_chunks/tiptap.js +1 -1
- package/dist/_chunks/vendor-client.js +1 -1
- package/dist/_chunks/vendor-utils.js +1311 -1168
- package/dist/ai/ai-command-provider.d.ts +23 -0
- package/dist/ai/ai-command-provider.d.ts.map +1 -0
- package/dist/ai/ai-command-provider.js +20 -0
- package/dist/ai/block-renderer.d.ts +12 -0
- package/dist/ai/block-renderer.d.ts.map +1 -0
- package/dist/ai/block-renderer.js +54 -0
- package/dist/ai/blocks/block-table.d.ts +6 -0
- package/dist/ai/blocks/block-table.d.ts.map +1 -0
- package/dist/ai/blocks/confirm.d.ts +6 -0
- package/dist/ai/blocks/confirm.d.ts.map +1 -0
- package/dist/ai/blocks/divider.d.ts +6 -0
- package/dist/ai/blocks/divider.d.ts.map +1 -0
- package/dist/ai/blocks/error.d.ts +6 -0
- package/dist/ai/blocks/error.d.ts.map +1 -0
- package/dist/ai/blocks/index.d.ts +11 -0
- package/dist/ai/blocks/index.d.ts.map +1 -0
- package/dist/ai/blocks/index.js +13 -0
- package/dist/ai/blocks/info.d.ts +8 -0
- package/dist/ai/blocks/info.d.ts.map +1 -0
- package/dist/ai/blocks/loading.d.ts +6 -0
- package/dist/ai/blocks/loading.d.ts.map +1 -0
- package/dist/ai/blocks/stat-row.d.ts +6 -0
- package/dist/ai/blocks/stat-row.d.ts.map +1 -0
- package/dist/ai/blocks/success.d.ts +6 -0
- package/dist/ai/blocks/success.d.ts.map +1 -0
- package/dist/ai/blocks/text.d.ts +8 -0
- package/dist/ai/blocks/text.d.ts.map +1 -0
- package/dist/ai/command-bar.d.ts +40 -0
- package/dist/ai/command-bar.d.ts.map +1 -0
- package/dist/ai/command-bar.js +545 -0
- package/dist/ai/conversation.d.ts +20 -0
- package/dist/ai/conversation.d.ts.map +1 -0
- package/dist/ai/conversation.js +255 -0
- package/dist/ai/devadoot-icon.d.ts +23 -0
- package/dist/ai/devadoot-icon.d.ts.map +1 -0
- package/dist/ai/index.d.ts +22 -0
- package/dist/ai/index.d.ts.map +1 -0
- package/dist/ai/index.js +170 -0
- package/dist/ai/types.d.ts +81 -0
- package/dist/ai/types.d.ts.map +1 -0
- package/dist/composed/avatar-group.js +1 -1
- package/dist/composed/command-palette.d.ts +32 -2
- package/dist/composed/command-palette.d.ts.map +1 -1
- package/dist/composed/command-palette.js +176 -140
- package/dist/composed/content-card.js +1 -1
- package/dist/composed/index.d.ts +1 -1
- package/dist/composed/index.d.ts.map +1 -1
- package/dist/composed/priority-indicator.js +1 -1
- package/dist/composed/status-badge.js +1 -1
- package/dist/shell/app-command-palette.d.ts +36 -5
- package/dist/shell/app-command-palette.d.ts.map +1 -1
- package/dist/shell/app-command-palette.js +158 -137
- package/dist/shell/index.d.ts +1 -1
- package/dist/shell/index.d.ts.map +1 -1
- package/dist/tailwind/index.cjs +1 -1
- package/dist/tailwind/preset.js +1 -1
- package/dist/ui/alert.js +1 -1
- package/dist/ui/avatar.js +1 -1
- package/dist/ui/badge.js +1 -1
- package/dist/ui/banner.js +4 -4
- package/dist/ui/button.js +7 -7
- package/dist/ui/card.js +7 -7
- package/dist/ui/chip.js +1 -1
- package/dist/ui/input.js +5 -5
- package/dist/ui/lib/keybinding.d.ts +8 -0
- package/dist/ui/lib/keybinding.d.ts.map +1 -0
- package/dist/ui/lib/motion.d.ts +4 -0
- package/dist/ui/lib/motion.d.ts.map +1 -1
- package/dist/ui/lib/motion.js +18 -14
- package/dist/ui/lib/utils.js +1 -1
- package/dist/ui/progress.js +1 -1
- package/dist/ui/segmented-control.js +1 -1
- package/dist/ui/select.js +1 -1
- package/dist/ui/sheet.js +6 -6
- package/dist/ui/sidebar.js +1 -1
- package/dist/ui/skeleton.js +4 -4
- package/dist/ui/tabs.js +1 -1
- package/dist/ui/text.js +1 -1
- package/dist/ui/textarea.js +1 -1
- package/dist/ui/toggle.js +1 -1
- package/llms-full.txt +1 -1
- package/llms.txt +45 -2
- package/package.json +733 -699
|
@@ -1,220 +1,241 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
3
|
-
import * as
|
|
4
|
-
import { useCallback as g, useMemo as
|
|
5
|
-
import {
|
|
6
|
-
import { CommandPalette as
|
|
7
|
-
import { cn as
|
|
8
|
-
import { useCommandRegistry as
|
|
9
|
-
const
|
|
10
|
-
TASK: /* @__PURE__ */
|
|
11
|
-
PROJECT: /* @__PURE__ */
|
|
12
|
-
USER: /* @__PURE__ */
|
|
13
|
-
COMMENT: /* @__PURE__ */
|
|
14
|
-
MEETING: /* @__PURE__ */
|
|
15
|
-
LINK: /* @__PURE__ */
|
|
16
|
-
DELIVERABLE: /* @__PURE__ */
|
|
2
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
3
|
+
import * as _ from "react";
|
|
4
|
+
import { useCallback as g, useMemo as b } from "react";
|
|
5
|
+
import { IconLayoutDashboard as z, IconCalendarCheck as P, IconUmbrella as M, IconLayoutKanban as $, IconListCheck as w, IconBook as G, IconAdjustmentsHorizontal as H, IconUserCircle as q, IconShieldCheck as Q, IconClipboardList as W, IconUserPlus as X, IconSettings as Z, IconFileText as R, IconPackage as ee, IconLink as ne, IconVideo as te, IconMessage as oe, IconUsers as ae } from "@tabler/icons-react";
|
|
6
|
+
import { CommandPalette as ie } from "../composed/command-palette.js";
|
|
7
|
+
import { cn as ce } from "../ui/lib/utils.js";
|
|
8
|
+
import { useCommandRegistry as de } from "./command-registry.js";
|
|
9
|
+
const le = {
|
|
10
|
+
TASK: /* @__PURE__ */ n(w, {}),
|
|
11
|
+
PROJECT: /* @__PURE__ */ n($, {}),
|
|
12
|
+
USER: /* @__PURE__ */ n(ae, {}),
|
|
13
|
+
COMMENT: /* @__PURE__ */ n(oe, {}),
|
|
14
|
+
MEETING: /* @__PURE__ */ n(te, {}),
|
|
15
|
+
LINK: /* @__PURE__ */ n(ne, {}),
|
|
16
|
+
DELIVERABLE: /* @__PURE__ */ n(ee, {})
|
|
17
17
|
};
|
|
18
|
-
function
|
|
18
|
+
function se(e) {
|
|
19
19
|
return [
|
|
20
20
|
{
|
|
21
21
|
id: "nav-dashboard",
|
|
22
22
|
label: "Dashboard",
|
|
23
|
-
icon: /* @__PURE__ */
|
|
24
|
-
onSelect: () =>
|
|
23
|
+
icon: /* @__PURE__ */ n(z, {}),
|
|
24
|
+
onSelect: () => e("/")
|
|
25
25
|
},
|
|
26
26
|
{
|
|
27
27
|
id: "nav-attendance",
|
|
28
28
|
label: "Attendance",
|
|
29
|
-
icon: /* @__PURE__ */
|
|
30
|
-
onSelect: () =>
|
|
29
|
+
icon: /* @__PURE__ */ n(P, {}),
|
|
30
|
+
onSelect: () => e("/attendance")
|
|
31
31
|
},
|
|
32
32
|
{
|
|
33
33
|
id: "nav-breaks",
|
|
34
34
|
label: "Breaks",
|
|
35
|
-
icon: /* @__PURE__ */
|
|
36
|
-
onSelect: () =>
|
|
35
|
+
icon: /* @__PURE__ */ n(M, {}),
|
|
36
|
+
onSelect: () => e("/breaks")
|
|
37
37
|
},
|
|
38
38
|
{
|
|
39
39
|
id: "nav-projects",
|
|
40
40
|
label: "Projects",
|
|
41
|
-
icon: /* @__PURE__ */
|
|
42
|
-
onSelect: () =>
|
|
41
|
+
icon: /* @__PURE__ */ n($, {}),
|
|
42
|
+
onSelect: () => e("/projects")
|
|
43
43
|
},
|
|
44
44
|
{
|
|
45
45
|
id: "nav-my-tasks",
|
|
46
46
|
label: "My Tasks",
|
|
47
|
-
icon: /* @__PURE__ */
|
|
48
|
-
onSelect: () =>
|
|
47
|
+
icon: /* @__PURE__ */ n(w, {}),
|
|
48
|
+
onSelect: () => e("/my-tasks")
|
|
49
49
|
},
|
|
50
50
|
{
|
|
51
51
|
id: "nav-devsabha",
|
|
52
52
|
label: "Devsabha",
|
|
53
|
-
icon: /* @__PURE__ */
|
|
54
|
-
onSelect: () =>
|
|
53
|
+
icon: /* @__PURE__ */ n(G, {}),
|
|
54
|
+
onSelect: () => e("/devsabha")
|
|
55
55
|
},
|
|
56
56
|
{
|
|
57
57
|
id: "nav-adjustments",
|
|
58
58
|
label: "Adjustments",
|
|
59
|
-
icon: /* @__PURE__ */
|
|
60
|
-
onSelect: () =>
|
|
59
|
+
icon: /* @__PURE__ */ n(H, {}),
|
|
60
|
+
onSelect: () => e("/adjustments")
|
|
61
61
|
},
|
|
62
62
|
{
|
|
63
63
|
id: "nav-profile",
|
|
64
64
|
label: "Profile",
|
|
65
|
-
icon: /* @__PURE__ */
|
|
66
|
-
onSelect: () =>
|
|
65
|
+
icon: /* @__PURE__ */ n(q, {}),
|
|
66
|
+
onSelect: () => e("/profile")
|
|
67
67
|
}
|
|
68
68
|
];
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function re(e) {
|
|
71
71
|
return [
|
|
72
72
|
{
|
|
73
73
|
id: "nav-admin-dashboard",
|
|
74
74
|
label: "Admin Dashboard",
|
|
75
|
-
icon: /* @__PURE__ */
|
|
76
|
-
onSelect: () =>
|
|
75
|
+
icon: /* @__PURE__ */ n(Q, {}),
|
|
76
|
+
onSelect: () => e("/admin")
|
|
77
77
|
},
|
|
78
78
|
{
|
|
79
79
|
id: "nav-admin-breaks",
|
|
80
80
|
label: "Manage Breaks",
|
|
81
|
-
icon: /* @__PURE__ */
|
|
82
|
-
onSelect: () =>
|
|
81
|
+
icon: /* @__PURE__ */ n(M, {}),
|
|
82
|
+
onSelect: () => e("/admin/breaks")
|
|
83
83
|
},
|
|
84
84
|
{
|
|
85
85
|
id: "nav-admin-attendance",
|
|
86
86
|
label: "Manage Attendance",
|
|
87
|
-
icon: /* @__PURE__ */
|
|
88
|
-
onSelect: () =>
|
|
87
|
+
icon: /* @__PURE__ */ n(P, {}),
|
|
88
|
+
onSelect: () => e("/admin/attendance")
|
|
89
89
|
},
|
|
90
90
|
{
|
|
91
91
|
id: "nav-admin-lokwasi",
|
|
92
92
|
label: "Lokwasi",
|
|
93
|
-
icon: /* @__PURE__ */
|
|
94
|
-
onSelect: () =>
|
|
93
|
+
icon: /* @__PURE__ */ n(W, {}),
|
|
94
|
+
onSelect: () => e("/admin/lokwasi")
|
|
95
95
|
},
|
|
96
96
|
{
|
|
97
97
|
id: "nav-admin-onboarding",
|
|
98
98
|
label: "Onboarding",
|
|
99
|
-
icon: /* @__PURE__ */
|
|
100
|
-
onSelect: () =>
|
|
99
|
+
icon: /* @__PURE__ */ n(X, {}),
|
|
100
|
+
onSelect: () => e("/admin/onboarding")
|
|
101
101
|
},
|
|
102
102
|
{
|
|
103
103
|
id: "nav-admin-config",
|
|
104
104
|
label: "System Config",
|
|
105
|
-
icon: /* @__PURE__ */
|
|
106
|
-
onSelect: () =>
|
|
105
|
+
icon: /* @__PURE__ */ n(Z, {}),
|
|
106
|
+
onSelect: () => e("/admin/system-config")
|
|
107
107
|
}
|
|
108
108
|
];
|
|
109
109
|
}
|
|
110
|
-
|
|
110
|
+
function me(e) {
|
|
111
|
+
var o;
|
|
112
|
+
switch (e.entityType) {
|
|
113
|
+
case "TASK":
|
|
114
|
+
return e.projectId ? `/projects/${e.projectId}?taskId=${e.id}` : "/";
|
|
115
|
+
case "PROJECT":
|
|
116
|
+
return `/projects/${e.id}`;
|
|
117
|
+
case "USER":
|
|
118
|
+
return "/teammates";
|
|
119
|
+
case "COMMENT":
|
|
120
|
+
return e.projectId && ((o = e.metadata) != null && o.taskId) ? `/projects/${e.projectId}?taskId=${e.metadata.taskId}` : "/";
|
|
121
|
+
case "MEETING":
|
|
122
|
+
return e.projectId ? `/projects/${e.projectId}?tab=meetings` : "/";
|
|
123
|
+
case "LINK":
|
|
124
|
+
return e.projectId ? `/projects/${e.projectId}?tab=karyakram` : "/";
|
|
125
|
+
case "DELIVERABLE":
|
|
126
|
+
return e.projectId ? `/projects/${e.projectId}?tab=deliverables` : "/";
|
|
127
|
+
default:
|
|
128
|
+
return "/";
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
function h(e, o, I) {
|
|
132
|
+
return {
|
|
133
|
+
id: `search-${e.entityType}-${e.id}`,
|
|
134
|
+
label: e.title,
|
|
135
|
+
filterValue: e.title,
|
|
136
|
+
description: e.snippet,
|
|
137
|
+
icon: e.icon ?? le[e.entityType] ?? /* @__PURE__ */ n(R, {}),
|
|
138
|
+
shortcut: e.shortcut,
|
|
139
|
+
onSelect: () => {
|
|
140
|
+
o ? o(e) : I(me(e));
|
|
141
|
+
}
|
|
142
|
+
};
|
|
143
|
+
}
|
|
144
|
+
const pe = _.forwardRef(
|
|
111
145
|
function({
|
|
112
|
-
user:
|
|
113
|
-
isAdmin:
|
|
114
|
-
extraGroups:
|
|
115
|
-
onNavigate:
|
|
116
|
-
onSearch:
|
|
117
|
-
searchResults:
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
146
|
+
user: o,
|
|
147
|
+
isAdmin: I,
|
|
148
|
+
extraGroups: j = [],
|
|
149
|
+
onNavigate: r,
|
|
150
|
+
onSearch: m,
|
|
151
|
+
searchResults: d = [],
|
|
152
|
+
searchResultGroups: p,
|
|
153
|
+
isSearching: y = !1,
|
|
154
|
+
onSearchResultSelect: k,
|
|
155
|
+
searchResultsLabel: l,
|
|
156
|
+
open: D,
|
|
157
|
+
defaultOpen: L,
|
|
158
|
+
onOpenChange: N,
|
|
159
|
+
keybinding: O,
|
|
160
|
+
maxHeight: U,
|
|
161
|
+
emptyState: B,
|
|
162
|
+
footerHints: K,
|
|
163
|
+
className: V,
|
|
164
|
+
...v
|
|
165
|
+
}, x) {
|
|
166
|
+
const C = I ?? ((o == null ? void 0 : o.role) === "Admin" || (o == null ? void 0 : o.role) === "SuperAdmin"), c = de(), i = g(
|
|
167
|
+
(t) => {
|
|
168
|
+
r == null || r(t);
|
|
126
169
|
},
|
|
127
|
-
[
|
|
128
|
-
),
|
|
170
|
+
[r]
|
|
171
|
+
), S = b(
|
|
129
172
|
() => ({
|
|
130
173
|
label: "Pages",
|
|
131
|
-
items:
|
|
132
|
-
id:
|
|
133
|
-
label:
|
|
134
|
-
icon:
|
|
135
|
-
keywords:
|
|
136
|
-
onSelect: () => t
|
|
137
|
-
})) :
|
|
174
|
+
items: c ? c.pages.map((t) => ({
|
|
175
|
+
id: t.id,
|
|
176
|
+
label: t.label,
|
|
177
|
+
icon: t.icon,
|
|
178
|
+
keywords: t.keywords,
|
|
179
|
+
onSelect: () => i(t.path)
|
|
180
|
+
})) : se(i)
|
|
138
181
|
}),
|
|
139
|
-
[
|
|
140
|
-
),
|
|
182
|
+
[i, c]
|
|
183
|
+
), A = b(
|
|
141
184
|
() => ({
|
|
142
185
|
label: "Admin",
|
|
143
|
-
items:
|
|
144
|
-
id:
|
|
145
|
-
label:
|
|
146
|
-
icon:
|
|
147
|
-
keywords:
|
|
148
|
-
onSelect: () => t
|
|
149
|
-
})) :
|
|
186
|
+
items: c ? c.adminPages.map((t) => ({
|
|
187
|
+
id: t.id,
|
|
188
|
+
label: t.label,
|
|
189
|
+
icon: t.icon,
|
|
190
|
+
keywords: t.keywords,
|
|
191
|
+
onSelect: () => i(t.path)
|
|
192
|
+
})) : re(i)
|
|
150
193
|
}),
|
|
151
|
-
[
|
|
152
|
-
),
|
|
153
|
-
if (
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
i = n.projectId ? `/projects/${n.projectId}?tab=meetings` : "/";
|
|
172
|
-
break;
|
|
173
|
-
case "LINK":
|
|
174
|
-
i = n.projectId ? `/projects/${n.projectId}?tab=karyakram` : "/";
|
|
175
|
-
break;
|
|
176
|
-
case "DELIVERABLE":
|
|
177
|
-
i = n.projectId ? `/projects/${n.projectId}?tab=deliverables` : "/";
|
|
178
|
-
break;
|
|
179
|
-
}
|
|
180
|
-
return {
|
|
181
|
-
id: `search-${n.entityType}-${n.id}`,
|
|
182
|
-
label: n.title,
|
|
183
|
-
description: n.snippet,
|
|
184
|
-
icon: q[n.entityType] ?? /* @__PURE__ */ a(D, {}),
|
|
185
|
-
onSelect: () => {
|
|
186
|
-
m == null || m(n), t(i);
|
|
187
|
-
}
|
|
188
|
-
};
|
|
189
|
-
});
|
|
190
|
-
return {
|
|
191
|
-
label: k ? "Searching..." : "Search Results",
|
|
192
|
-
items: e
|
|
193
|
-
};
|
|
194
|
-
}, [b, k, t, m]), M = r(() => {
|
|
195
|
-
const e = [];
|
|
196
|
-
return p && e.push(p), e.push(j), f && e.push(y), e.push(...I), e;
|
|
197
|
-
}, [p, j, f, y, I]), $ = g(
|
|
198
|
-
(e) => {
|
|
199
|
-
l == null || l(e);
|
|
194
|
+
[i, c]
|
|
195
|
+
), E = b(() => {
|
|
196
|
+
if (p && p.length > 0)
|
|
197
|
+
return p.map((a) => {
|
|
198
|
+
const u = a.results.some((s) => s.rank != null) ? [...a.results].sort((s, Y) => (Y.rank ?? 0) - (s.rank ?? 0)) : a.results;
|
|
199
|
+
return {
|
|
200
|
+
label: a.label,
|
|
201
|
+
items: u.map((s) => h(s, k, i))
|
|
202
|
+
};
|
|
203
|
+
});
|
|
204
|
+
if (d.length === 0) return [];
|
|
205
|
+
const T = (d.some((a) => a.rank != null) ? [...d].sort((a, u) => (u.rank ?? 0) - (a.rank ?? 0)) : d).map((a) => h(a, k, i));
|
|
206
|
+
let f;
|
|
207
|
+
return l ? f = typeof l == "function" ? l(T.length) : l : f = y ? "Searching..." : "Search Results", [{ label: f, items: T }];
|
|
208
|
+
}, [d, p, y, i, k, l]), F = b(() => {
|
|
209
|
+
const t = [];
|
|
210
|
+
return t.push(...E), t.push(S), C && t.push(A), t.push(...j), t;
|
|
211
|
+
}, [E, S, C, A, j]), J = g(
|
|
212
|
+
(t) => {
|
|
213
|
+
m == null || m(t);
|
|
200
214
|
},
|
|
201
|
-
[
|
|
215
|
+
[m]
|
|
202
216
|
);
|
|
203
|
-
return /* @__PURE__ */
|
|
204
|
-
|
|
217
|
+
return /* @__PURE__ */ n(
|
|
218
|
+
ie,
|
|
205
219
|
{
|
|
206
|
-
ref:
|
|
207
|
-
groups:
|
|
220
|
+
ref: x,
|
|
221
|
+
groups: F,
|
|
208
222
|
placeholder: "Search or jump to...",
|
|
209
|
-
onSearch:
|
|
223
|
+
onSearch: J,
|
|
210
224
|
emptyMessage: "No results found. Try a different search term.",
|
|
211
|
-
|
|
212
|
-
|
|
225
|
+
open: D,
|
|
226
|
+
defaultOpen: L,
|
|
227
|
+
onOpenChange: N,
|
|
228
|
+
keybinding: O,
|
|
229
|
+
maxHeight: U,
|
|
230
|
+
emptyState: B,
|
|
231
|
+
footerHints: K,
|
|
232
|
+
className: ce(V),
|
|
233
|
+
...v
|
|
213
234
|
}
|
|
214
235
|
);
|
|
215
236
|
}
|
|
216
237
|
);
|
|
217
|
-
|
|
238
|
+
pe.displayName = "AppCommandPalette";
|
|
218
239
|
export {
|
|
219
|
-
|
|
240
|
+
pe as AppCommandPalette
|
|
220
241
|
};
|
package/dist/shell/index.d.ts
CHANGED
|
@@ -15,6 +15,6 @@ export { TopBar, type TopBarUser, type UserMenuItem, type TopBarProps, } from '.
|
|
|
15
15
|
export { BottomNavbar, type BottomNavItem, type BottomNavbarUser, type BottomNavbarProps, } from './bottom-navbar';
|
|
16
16
|
export { NotificationCenter, type Notification, type NotificationCenterProps, } from './notification-center';
|
|
17
17
|
export { NotificationPreferences, type NotificationPreference, type NotificationProject, type NotificationPreferencesProps, } from './notification-preferences';
|
|
18
|
-
export { AppCommandPalette, type SearchResult, type AppCommandPaletteUser, type AppCommandPaletteProps, } from './app-command-palette';
|
|
18
|
+
export { AppCommandPalette, type SearchResult, type SearchResultGroup, type AppCommandPaletteUser, type AppCommandPaletteProps, } from './app-command-palette';
|
|
19
19
|
export { CommandRegistryProvider, useCommandRegistry, type CommandRegistry, type CommandPageItem, type CommandRegistryProviderProps, } from './command-registry';
|
|
20
20
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/shell/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAGH,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,gBAAgB,CAAA;AAE9E,OAAO,EACL,UAAU,EACV,KAAK,OAAO,EACZ,KAAK,QAAQ,EACb,KAAK,WAAW,EAChB,KAAK,eAAe,GACrB,MAAM,WAAW,CAAA;AAElB,OAAO,EACL,MAAM,EACN,KAAK,UAAU,EACf,KAAK,YAAY,EACjB,KAAK,WAAW,GACjB,MAAM,WAAW,CAAA;AAElB,OAAO,EACL,YAAY,EACZ,KAAK,aAAa,EAClB,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,GACvB,MAAM,iBAAiB,CAAA;AAExB,OAAO,EACL,kBAAkB,EAClB,KAAK,YAAY,EACjB,KAAK,uBAAuB,GAC7B,MAAM,uBAAuB,CAAA;AAE9B,OAAO,EACL,uBAAuB,EACvB,KAAK,sBAAsB,EAC3B,KAAK,mBAAmB,EACxB,KAAK,4BAA4B,GAClC,MAAM,4BAA4B,CAAA;AAEnC,OAAO,EACL,iBAAiB,EACjB,KAAK,YAAY,EACjB,KAAK,qBAAqB,EAC1B,KAAK,sBAAsB,GAC5B,MAAM,uBAAuB,CAAA;AAE9B,OAAO,EACL,uBAAuB,EACvB,kBAAkB,EAClB,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,4BAA4B,GAClC,MAAM,oBAAoB,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/shell/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAGH,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,gBAAgB,CAAA;AAE9E,OAAO,EACL,UAAU,EACV,KAAK,OAAO,EACZ,KAAK,QAAQ,EACb,KAAK,WAAW,EAChB,KAAK,eAAe,GACrB,MAAM,WAAW,CAAA;AAElB,OAAO,EACL,MAAM,EACN,KAAK,UAAU,EACf,KAAK,YAAY,EACjB,KAAK,WAAW,GACjB,MAAM,WAAW,CAAA;AAElB,OAAO,EACL,YAAY,EACZ,KAAK,aAAa,EAClB,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,GACvB,MAAM,iBAAiB,CAAA;AAExB,OAAO,EACL,kBAAkB,EAClB,KAAK,YAAY,EACjB,KAAK,uBAAuB,GAC7B,MAAM,uBAAuB,CAAA;AAE9B,OAAO,EACL,uBAAuB,EACvB,KAAK,sBAAsB,EAC3B,KAAK,mBAAmB,EACxB,KAAK,4BAA4B,GAClC,MAAM,4BAA4B,CAAA;AAEnC,OAAO,EACL,iBAAiB,EACjB,KAAK,YAAY,EACjB,KAAK,iBAAiB,EACtB,KAAK,qBAAqB,EAC1B,KAAK,sBAAsB,GAC5B,MAAM,uBAAuB,CAAA;AAE9B,OAAO,EACL,uBAAuB,EACvB,kBAAkB,EAClB,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,4BAA4B,GAClC,MAAM,oBAAoB,CAAA"}
|
package/dist/tailwind/index.cjs
CHANGED
package/dist/tailwind/preset.js
CHANGED
package/dist/ui/alert.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsx as e, jsxs as n } from "react/jsx-runtime";
|
|
3
3
|
import { IconInfoCircle as o, IconAlertCircle as v, IconAlertTriangle as x, IconCircleCheck as p, IconX as N } from "@tabler/icons-react";
|
|
4
4
|
import * as r from "react";
|
|
5
|
-
import {
|
|
5
|
+
import { ay as h } from "../_chunks/vendor-utils.js";
|
|
6
6
|
import { cn as w } from "./lib/utils.js";
|
|
7
7
|
import { springs as y, motionProps as I } from "./lib/motion.js";
|
|
8
8
|
import { A as C, m as A } from "../_chunks/framer.js";
|
package/dist/ui/avatar.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsx as a, jsxs as R } from "react/jsx-runtime";
|
|
3
3
|
import * as l from "react";
|
|
4
4
|
import { F as v, J as N, K as C } from "../_chunks/primitives.js";
|
|
5
|
-
import {
|
|
5
|
+
import { ay as F } from "../_chunks/vendor-utils.js";
|
|
6
6
|
import { springs as k } from "./lib/motion.js";
|
|
7
7
|
import { cn as n } from "./lib/utils.js";
|
|
8
8
|
import { m as f } from "../_chunks/framer.js";
|
package/dist/ui/badge.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsxs as t, jsx as a } from "react/jsx-runtime";
|
|
3
3
|
import { IconX as g } from "@tabler/icons-react";
|
|
4
4
|
import * as b from "react";
|
|
5
|
-
import {
|
|
5
|
+
import { ay as m } from "../_chunks/vendor-utils.js";
|
|
6
6
|
import { cn as u } from "./lib/utils.js";
|
|
7
7
|
import { m as f } from "../_chunks/framer.js";
|
|
8
8
|
const x = m(
|
package/dist/ui/banner.js
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import { jsx as e, jsxs as p } from "react/jsx-runtime";
|
|
3
3
|
import { IconInfoCircle as n, IconAlertCircle as h, IconAlertTriangle as x, IconCircleCheck as v, IconX as w } from "@tabler/icons-react";
|
|
4
4
|
import * as r from "react";
|
|
5
|
-
import {
|
|
5
|
+
import { ay as N } from "../_chunks/vendor-utils.js";
|
|
6
6
|
import { cn as I } from "./lib/utils.js";
|
|
7
|
-
import { springs as
|
|
7
|
+
import { springs as y, motionProps as C } from "./lib/motion.js";
|
|
8
8
|
import { A as k, m as A } from "../_chunks/framer.js";
|
|
9
9
|
const _ = N(
|
|
10
10
|
"flex flex-wrap items-center gap-ds-04 px-ds-06 py-ds-04 text-ds-md font-medium border-b",
|
|
@@ -37,10 +37,10 @@ const _ = N(
|
|
|
37
37
|
ref: m,
|
|
38
38
|
initial: { height: "auto", opacity: 1 },
|
|
39
39
|
exit: { height: 0, opacity: 0 },
|
|
40
|
-
transition:
|
|
40
|
+
transition: y.snappy,
|
|
41
41
|
className: I(_({ color: s }), "overflow-hidden", i),
|
|
42
42
|
role: "alert",
|
|
43
|
-
...
|
|
43
|
+
...C(l),
|
|
44
44
|
children: [
|
|
45
45
|
/* @__PURE__ */ e(u, { className: "h-ico-md w-ico-md shrink-0", "aria-hidden": "true" }),
|
|
46
46
|
/* @__PURE__ */ e("div", { className: "min-w-0 flex-1", children: d }),
|
package/dist/ui/button.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as e, jsxs as C } from "react/jsx-runtime";
|
|
3
|
-
import {
|
|
3
|
+
import { ay as K } from "../_chunks/vendor-utils.js";
|
|
4
4
|
import { IconCheck as L, IconX as O } from "@tabler/icons-react";
|
|
5
5
|
import { S as P, M as Q } from "../_chunks/primitives.js";
|
|
6
6
|
import * as a from "react";
|
|
@@ -97,8 +97,8 @@ const R = K(
|
|
|
97
97
|
onClickAsync: m,
|
|
98
98
|
asyncFeedbackDuration: T = 1500,
|
|
99
99
|
children: n,
|
|
100
|
-
...
|
|
101
|
-
},
|
|
100
|
+
...y
|
|
101
|
+
}, N) => {
|
|
102
102
|
const u = U(), S = A ?? u.variant, z = V ?? u.color, i = B ?? u.size ?? "md", f = W[i], G = ee[i], [t, d] = a.useState("idle"), k = a.useRef(), o = a.useRef(!0);
|
|
103
103
|
a.useEffect(() => () => {
|
|
104
104
|
o.current = !1, clearTimeout(k.current);
|
|
@@ -121,10 +121,10 @@ const R = K(
|
|
|
121
121
|
w && "w-full",
|
|
122
122
|
b
|
|
123
123
|
),
|
|
124
|
-
ref:
|
|
124
|
+
ref: N,
|
|
125
125
|
disabled: x || r,
|
|
126
126
|
"aria-busy": r || void 0,
|
|
127
|
-
...
|
|
127
|
+
...y
|
|
128
128
|
};
|
|
129
129
|
return /* @__PURE__ */ e(P, { ...v, children: /* @__PURE__ */ e(Q, { children: n }) });
|
|
130
130
|
}
|
|
@@ -146,7 +146,7 @@ const R = K(
|
|
|
146
146
|
return /* @__PURE__ */ C(
|
|
147
147
|
"button",
|
|
148
148
|
{
|
|
149
|
-
...
|
|
149
|
+
...y,
|
|
150
150
|
className: c(
|
|
151
151
|
R({ variant: S, color: z, size: i }),
|
|
152
152
|
w && "w-full",
|
|
@@ -155,7 +155,7 @@ const R = K(
|
|
|
155
155
|
s && "transition-colors duration-moderate-01 ease-productive-standard",
|
|
156
156
|
b
|
|
157
157
|
),
|
|
158
|
-
ref:
|
|
158
|
+
ref: N,
|
|
159
159
|
disabled: x || r || s,
|
|
160
160
|
"aria-busy": r || void 0,
|
|
161
161
|
onClick: j ? I : F,
|
package/dist/ui/card.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as s } from "react/jsx-runtime";
|
|
3
3
|
import * as o from "react";
|
|
4
|
-
import {
|
|
4
|
+
import { ay as f } from "../_chunks/vendor-utils.js";
|
|
5
5
|
import { springs as c, motionProps as l } from "./lib/motion.js";
|
|
6
6
|
import { cn as d } from "./lib/utils.js";
|
|
7
7
|
import { m } from "../_chunks/framer.js";
|
|
@@ -66,9 +66,9 @@ const w = o.forwardRef(({ className: a, ...e }, r) => /* @__PURE__ */ s(
|
|
|
66
66
|
}
|
|
67
67
|
));
|
|
68
68
|
w.displayName = "CardDescription";
|
|
69
|
-
const
|
|
70
|
-
|
|
71
|
-
const
|
|
69
|
+
const C = o.forwardRef(({ className: a, ...e }, r) => /* @__PURE__ */ s("div", { ref: r, className: d("p-ds-06 pt-0", a), ...e }));
|
|
70
|
+
C.displayName = "CardContent";
|
|
71
|
+
const g = o.forwardRef(({ className: a, ...e }, r) => /* @__PURE__ */ s(
|
|
72
72
|
"div",
|
|
73
73
|
{
|
|
74
74
|
ref: r,
|
|
@@ -76,12 +76,12 @@ const C = o.forwardRef(({ className: a, ...e }, r) => /* @__PURE__ */ s(
|
|
|
76
76
|
...e
|
|
77
77
|
}
|
|
78
78
|
));
|
|
79
|
-
|
|
79
|
+
g.displayName = "CardFooter";
|
|
80
80
|
export {
|
|
81
81
|
u as Card,
|
|
82
|
-
|
|
82
|
+
C as CardContent,
|
|
83
83
|
w as CardDescription,
|
|
84
|
-
|
|
84
|
+
g as CardFooter,
|
|
85
85
|
b as CardHeader,
|
|
86
86
|
v as CardTitle,
|
|
87
87
|
p as cardVariants
|
package/dist/ui/chip.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsxs as p, jsx as a } from "react/jsx-runtime";
|
|
3
3
|
import * as f from "react";
|
|
4
4
|
import { IconX as N } from "@tabler/icons-react";
|
|
5
|
-
import {
|
|
5
|
+
import { ay as h } from "../_chunks/vendor-utils.js";
|
|
6
6
|
import { springs as w, motionProps as C } from "./lib/motion.js";
|
|
7
7
|
import { cn as k } from "./lib/utils.js";
|
|
8
8
|
import { m as n } from "../_chunks/framer.js";
|
package/dist/ui/input.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as o, jsxs as
|
|
3
|
-
import * as
|
|
4
|
-
import {
|
|
2
|
+
import { jsx as o, jsxs as v } from "react/jsx-runtime";
|
|
3
|
+
import * as g from "react";
|
|
4
|
+
import { ay as p } from "../_chunks/vendor-utils.js";
|
|
5
5
|
import { cn as d } from "./lib/utils.js";
|
|
6
6
|
import { motionProps as x } from "./lib/motion.js";
|
|
7
7
|
import { useFormField as h } from "./form.js";
|
|
@@ -28,7 +28,7 @@ const y = p(
|
|
|
28
28
|
},
|
|
29
29
|
defaultVariants: { size: "md" }
|
|
30
30
|
}
|
|
31
|
-
), N =
|
|
31
|
+
), N = g.forwardRef(
|
|
32
32
|
({ className: n, type: l, state: m, size: a = "md", startIcon: e, endIcon: s, ...t }, u) => {
|
|
33
33
|
const r = h(), i = m ?? (r.state === "helper" ? void 0 : r.state), f = t["aria-describedby"] ?? r.helperTextId, b = t["aria-required"] ?? r.required, c = /* @__PURE__ */ o(
|
|
34
34
|
w.input,
|
|
@@ -50,7 +50,7 @@ const y = p(
|
|
|
50
50
|
...x(t)
|
|
51
51
|
}
|
|
52
52
|
);
|
|
53
|
-
return !e && !s ? c : /* @__PURE__ */
|
|
53
|
+
return !e && !s ? c : /* @__PURE__ */ v("div", { className: "relative flex items-center w-full", children: [
|
|
54
54
|
e && /* @__PURE__ */ o("span", { className: d("absolute left-ds-03 flex items-center text-surface-fg-muted pointer-events-none", a === "lg" ? "[&>svg]:h-ico-md [&>svg]:w-ico-md" : "[&>svg]:h-ico-sm [&>svg]:w-ico-sm"), children: e }),
|
|
55
55
|
c,
|
|
56
56
|
s && /* @__PURE__ */ o("span", { className: d("absolute right-ds-03 flex items-center text-surface-fg-muted pointer-events-none", a === "lg" ? "[&>svg]:h-ico-md [&>svg]:w-ico-md" : "[&>svg]:h-ico-sm [&>svg]:w-ico-sm"), children: s })
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
/** Detect macOS / iOS for modifier key display. */
|
|
3
|
+
export declare function getIsMac(): boolean;
|
|
4
|
+
/** Parse a keybinding string into a predicate that tests a KeyboardEvent. */
|
|
5
|
+
export declare function matchesKeybinding(e: KeyboardEvent, binding: string): boolean;
|
|
6
|
+
/** Display-friendly modifier name. */
|
|
7
|
+
export declare function getModifierDisplay(isMac: boolean): string;
|
|
8
|
+
//# sourceMappingURL=keybinding.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"keybinding.d.ts","sourceRoot":"","sources":["../../../src/ui/lib/keybinding.ts"],"names":[],"mappings":"AAAA,mDAAmD;AACnD,wBAAgB,QAAQ,IAAI,OAAO,CAIlC;AAED,6EAA6E;AAC7E,wBAAgB,iBAAiB,CAAC,CAAC,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAwB5E;AAED,sCAAsC;AACtC,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAEzD"}
|
package/dist/ui/lib/motion.d.ts
CHANGED
|
@@ -8,12 +8,16 @@ export declare const springs: {
|
|
|
8
8
|
readonly bouncy: Transition;
|
|
9
9
|
/** Collapse/expand, accordion, height changes */
|
|
10
10
|
readonly gentle: Transition;
|
|
11
|
+
/** AI response blocks — snappier than smooth, feels "intelligent" */
|
|
12
|
+
readonly responsive: Transition;
|
|
11
13
|
};
|
|
12
14
|
export declare const tweens: {
|
|
13
15
|
/** Opacity enter/exit */
|
|
14
16
|
readonly fade: Transition;
|
|
15
17
|
/** Hover color, bg, border transitions */
|
|
16
18
|
readonly colorShift: Transition;
|
|
19
|
+
/** Greeting fade, hint crossfade — unhurried, confident */
|
|
20
|
+
readonly elegant: Transition;
|
|
17
21
|
};
|
|
18
22
|
export declare function stagger(delay?: number): {
|
|
19
23
|
visible: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"motion.d.ts","sourceRoot":"","sources":["../../../src/ui/lib/motion.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAI/C,eAAO,MAAM,OAAO;IAClB,sDAAsD;qBACgB,UAAU;IAChF,0CAA0C;qBAC4B,UAAU;IAChF,4CAA4C;qBAC0B,UAAU;IAChF,iDAAiD;qBACqB,UAAU;
|
|
1
|
+
{"version":3,"file":"motion.d.ts","sourceRoot":"","sources":["../../../src/ui/lib/motion.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAI/C,eAAO,MAAM,OAAO;IAClB,sDAAsD;qBACgB,UAAU;IAChF,0CAA0C;qBAC4B,UAAU;IAChF,4CAA4C;qBAC0B,UAAU;IAChF,iDAAiD;qBACqB,UAAU;IAChF,qEAAqE;yBACK,UAAU;CAC5E,CAAA;AAIV,eAAO,MAAM,MAAM;IACjB,yBAAyB;mBACmC,UAAU;IACtE,0CAA0C;yBACwB,UAAU;IAC5E,2DAA2D;sBACc,UAAU;CAC3E,CAAA;AAIV,wBAAgB,OAAO,CAAC,KAAK,SAAO;;;;;;;;;;;EAKnC;AAID,wBAAgB,iBAAiB,CAAC,UAAU,EAAE,UAAU,GAAG,UAAU,CAEpE;AAID,MAAM,MAAM,YAAY,GAAG,MAAM,OAAO,OAAO,CAAA;AAC/C,MAAM,MAAM,WAAW,GAAG,MAAM,OAAO,MAAM,CAAA;AAQ7C;;;;;;;;;;GAUG;AACH,wBAAgB,WAAW,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAEhG"}
|