@knymbus/voxel-ui 1.0.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 (115) hide show
  1. package/.storybook/main.ts +17 -0
  2. package/.storybook/preview.ts +23 -0
  3. package/debug-storybook.log +40 -0
  4. package/dist/chunks/jsx-runtime-Boo2vksn.js +182 -0
  5. package/dist/chunks/resizable-ImB8dfG_.js +112 -0
  6. package/dist/chunks/tabs-MaVN00hJ.js +86 -0
  7. package/dist/components/button/Button.d.ts +31 -0
  8. package/dist/components/button/ButtonGroup.d.ts +12 -0
  9. package/dist/components/button/SplitActionButton.d.ts +2 -0
  10. package/dist/components/button/index.d.ts +5 -0
  11. package/dist/components/button/split-types.d.ts +16 -0
  12. package/dist/components/button/types.d.ts +9 -0
  13. package/dist/components/icons/AddIcon.d.ts +2 -0
  14. package/dist/components/icons/BlankDocIcon.d.ts +2 -0
  15. package/dist/components/icons/ChatIcon.d.ts +2 -0
  16. package/dist/components/icons/ChevronDownIcon.d.ts +2 -0
  17. package/dist/components/icons/CloseIcon.d.ts +2 -0
  18. package/dist/components/icons/CommentIcon.d.ts +2 -0
  19. package/dist/components/icons/DeleteChatIcon.d.ts +2 -0
  20. package/dist/components/icons/DocumentIcon.d.ts +2 -0
  21. package/dist/components/icons/ExpandIcon.d.ts +2 -0
  22. package/dist/components/icons/FolderIcon.d.ts +2 -0
  23. package/dist/components/icons/GroupIcon.d.ts +2 -0
  24. package/dist/components/icons/MinimizeIcon.d.ts +2 -0
  25. package/dist/components/icons/MinusIcon.d.ts +2 -0
  26. package/dist/components/icons/MoreIcon.d.ts +2 -0
  27. package/dist/components/icons/OpenFolderIcon.d.ts +2 -0
  28. package/dist/components/icons/PersonIcon.d.ts +2 -0
  29. package/dist/components/icons/PlusChatIcon.d.ts +2 -0
  30. package/dist/components/icons/PlusCommentIcon.d.ts +2 -0
  31. package/dist/components/icons/PlusDocBadgeIcon.d.ts +8 -0
  32. package/dist/components/icons/PlusDocIcon.d.ts +2 -0
  33. package/dist/components/icons/PlusPersonIcon.d.ts +2 -0
  34. package/dist/components/icons/RefreshIcon.d.ts +2 -0
  35. package/dist/components/icons/SearchIcon.d.ts +2 -0
  36. package/dist/components/icons/TerminalIcon.d.ts +2 -0
  37. package/dist/components/icons/TrashIcon.d.ts +2 -0
  38. package/dist/components/icons/TruckIcon.d.ts +2 -0
  39. package/dist/components/icons/index.d.ts +26 -0
  40. package/dist/components/icons/types.d.ts +5 -0
  41. package/dist/components/resizable/ResizablePanel.d.ts +10 -0
  42. package/dist/components/resizable/index.d.ts +1 -0
  43. package/dist/components/resizable/index.js +2 -0
  44. package/dist/components/search/SearchInput.d.ts +10 -0
  45. package/dist/components/search/index.d.ts +2 -0
  46. package/dist/components/search/types.d.ts +19 -0
  47. package/dist/components/tabs/TabButton.d.ts +12 -0
  48. package/dist/components/tabs/TabButtonGroup.d.ts +9 -0
  49. package/dist/components/tabs/TabPanel.d.ts +8 -0
  50. package/dist/components/tabs/TabPanelList.d.ts +11 -0
  51. package/dist/components/tabs/index.d.ts +5 -0
  52. package/dist/components/tabs/index.js +2 -0
  53. package/dist/components/tabs/types.d.ts +9 -0
  54. package/dist/components/tabs/useTab.d.ts +5 -0
  55. package/dist/index.d.ts +5 -0
  56. package/dist/index.js +1071 -0
  57. package/package.json +68 -0
  58. package/src/components/button/Button.stories.tsx +70 -0
  59. package/src/components/button/Button.tsx +108 -0
  60. package/src/components/button/ButtonGroup.stories.tsx +63 -0
  61. package/src/components/button/ButtonGroup.tsx +62 -0
  62. package/src/components/button/SplitActionButton.tsx +116 -0
  63. package/src/components/button/SplitButton.stories.tsx +55 -0
  64. package/src/components/button/index.ts +7 -0
  65. package/src/components/button/split-types.ts +18 -0
  66. package/src/components/button/types.ts +10 -0
  67. package/src/components/icons/AddIcon.tsx +10 -0
  68. package/src/components/icons/BlankDocIcon.tsx +10 -0
  69. package/src/components/icons/ChatIcon.tsx +9 -0
  70. package/src/components/icons/ChevronDownIcon.tsx +9 -0
  71. package/src/components/icons/CloseIcon.tsx +23 -0
  72. package/src/components/icons/CommentIcon.tsx +9 -0
  73. package/src/components/icons/DeleteChatIcon.tsx +10 -0
  74. package/src/components/icons/DocumentIcon.tsx +13 -0
  75. package/src/components/icons/ExpandIcon.tsx +12 -0
  76. package/src/components/icons/FolderIcon.tsx +9 -0
  77. package/src/components/icons/GroupIcon.tsx +12 -0
  78. package/src/components/icons/Icon.stories.tsx +122 -0
  79. package/src/components/icons/MinimizeIcon.tsx +12 -0
  80. package/src/components/icons/MinusIcon.tsx +9 -0
  81. package/src/components/icons/MoreIcon.tsx +11 -0
  82. package/src/components/icons/OpenFolderIcon.tsx +37 -0
  83. package/src/components/icons/PersonIcon.tsx +10 -0
  84. package/src/components/icons/PlusChatIcon.tsx +11 -0
  85. package/src/components/icons/PlusCommentIcon.tsx +11 -0
  86. package/src/components/icons/PlusDocBadgeIcon.tsx +74 -0
  87. package/src/components/icons/PlusDocIcon.tsx +12 -0
  88. package/src/components/icons/PlusPersonIcon.tsx +12 -0
  89. package/src/components/icons/RefreshIcon.tsx +9 -0
  90. package/src/components/icons/SearchIcon.tsx +10 -0
  91. package/src/components/icons/TerminalIcon.tsx +11 -0
  92. package/src/components/icons/TrashIcon.tsx +12 -0
  93. package/src/components/icons/TruckIcon.tsx +12 -0
  94. package/src/components/icons/index.ts +26 -0
  95. package/src/components/icons/types.ts +6 -0
  96. package/src/components/resizable/ResizablePanel.tsx +183 -0
  97. package/src/components/resizable/index.ts +1 -0
  98. package/src/components/search/SearchInput.stories.tsx +91 -0
  99. package/src/components/search/SearchInput.tsx +254 -0
  100. package/src/components/search/index.ts +2 -0
  101. package/src/components/search/types.ts +21 -0
  102. package/src/components/tabs/TabButton.tsx +56 -0
  103. package/src/components/tabs/TabButtonGroup.tsx +82 -0
  104. package/src/components/tabs/TabPanel.tsx +44 -0
  105. package/src/components/tabs/TabPanelList.tsx +31 -0
  106. package/src/components/tabs/Tabs.stories.tsx +71 -0
  107. package/src/components/tabs/index.ts +5 -0
  108. package/src/components/tabs/types.ts +10 -0
  109. package/src/components/tabs/useTab.ts +33 -0
  110. package/src/index.css +35 -0
  111. package/src/index.ts +5 -0
  112. package/src/vite-env.d.ts +5 -0
  113. package/tsconfig.json +47 -0
  114. package/vite.config.ts +64 -0
  115. package/vitest.shims.d.ts +1 -0
package/dist/index.js ADDED
@@ -0,0 +1,1071 @@
1
+ import { t as e } from "./chunks/jsx-runtime-Boo2vksn.js";
2
+ import { t } from "./chunks/resizable-ImB8dfG_.js";
3
+ import { i as n, n as r, r as i, t as a } from "./chunks/tabs-MaVN00hJ.js";
4
+ import o, { forwardRef as s, useEffect as c, useRef as l, useState as u } from "react";
5
+ //#region src/components/button/Button.tsx
6
+ var d = e(), f = {
7
+ xs: "w-3 h-3",
8
+ sm: "w-3.5 h-3.5",
9
+ md: "w-4 h-4",
10
+ lg: "w-5 h-5"
11
+ }, p = ({ icon: e, size: t = "sm", className: n = "", ...r }) => {
12
+ let i = f[t];
13
+ return /* @__PURE__ */ (0, d.jsx)(e, {
14
+ className: `${i} ${n}`.trim(),
15
+ ...r
16
+ });
17
+ }, m = s((e, t) => {
18
+ let { size: n = "sm", color: r = "vsc", iconOnly: i = !1, startIcon: a, endIcon: o, className: s = "", disabled: c, ...l } = e, u = {
19
+ primary: "bg-vsc-accent text-vsc-button-text hover:bg-vsc-accent-hover border border-transparent focus:border-vsc-accent/50",
20
+ secondary: "bg-vsc-bg border border-vsc-border text-vsc-text hover:bg-vsc-hover focus:border-vsc-accent",
21
+ ghost: "bg-transparent border border-transparent text-vsc-muted hover:bg-vsc-hover/40 hover:text-vsc-text focus:border-vsc-border",
22
+ danger: "bg-rose-500/10 border border-rose-500/20 text-rose-500 hover:bg-rose-500/20 focus:border-rose-500/50",
23
+ vsc: "bg-transparent text-vsc-text border border-transparent opacity-55 hover:opacity-100 hover:bg-vsc-hover focus:border-vsc-hover/50"
24
+ }, f = {
25
+ xs: i ? "p-1 rounded-sm h-5 w-5" : "px-2 py-0.5 text-[10px] rounded-sm gap-1 h-5.5",
26
+ sm: i ? "p-1.5 rounded-md h-7 w-7" : "px-3 py-1.5 text-xs rounded-md gap-1.5 h-7.5",
27
+ md: i ? "p-2 rounded-md h-9 w-9" : "px-4 py-2 text-sm rounded-md gap-2 h-9",
28
+ lg: i ? "p-3 rounded-lg h-11 w-11" : "px-5 py-2.5 text-base rounded-lg gap-2.5 h-11"
29
+ }, m = `inline-flex items-center justify-center font-sans font-medium select-none
30
+ outline-none focus:ring-0 cursor-pointer
31
+ disabled:opacity-40 disabled:cursor-not-allowed disabled:transform-none disabled:active:scale-100 disabled:pointer-events-none
32
+ transition-all duration-150 cubic-bezier(0.34, 1.56, 0.64, 1)
33
+ active:scale-95 active:duration-75 ${u[r]} ${f[n]} ${s}`;
34
+ if (i) {
35
+ let r = e.icon;
36
+ return /* @__PURE__ */ (0, d.jsx)("button", {
37
+ ref: t,
38
+ disabled: c,
39
+ className: m,
40
+ ...l,
41
+ children: /* @__PURE__ */ (0, d.jsx)(p, {
42
+ icon: r,
43
+ size: n
44
+ })
45
+ });
46
+ }
47
+ return /* @__PURE__ */ (0, d.jsxs)("button", {
48
+ ref: t,
49
+ disabled: c,
50
+ className: m,
51
+ ...l,
52
+ children: [
53
+ a && /* @__PURE__ */ (0, d.jsx)(p, {
54
+ icon: a,
55
+ size: n
56
+ }),
57
+ /* @__PURE__ */ (0, d.jsx)("span", { children: e.children }),
58
+ o && /* @__PURE__ */ (0, d.jsx)(p, {
59
+ icon: o,
60
+ size: n
61
+ })
62
+ ]
63
+ });
64
+ });
65
+ m.displayName = "Button";
66
+ //#endregion
67
+ //#region src/components/button/ButtonGroup.tsx
68
+ function h({ children: e, orientation: t = "horizontal", variant: n = "default", gap: r = 0, className: i = "" }) {
69
+ let a = t === "horizontal", s = r > 0, c = a ? "flex-row" : "flex-col", l = "";
70
+ !s && n === "default" ? l = a ? "[&>button:not(:first-child)]:-ml-[1px] [&>button:first-child]:rounded-l-sm [&>button:last-child]:rounded-r-sm [&>button:not(:first-child):not(:last-child)]:rounded-none" : "[&>button:not(:first-child)]:-mt-[1px] [&>button:first-child]:rounded-t-sm [&>button:last-child]:rounded-b-sm [&>button:not(:first-child):not(:last-child)]:rounded-none" : s && (l = "[&>button]:rounded-sm");
71
+ let u = o.Children.map(e, (e) => o.isValidElement(e) && n === "ghost" ? o.cloneElement(e, { color: "ghost" }) : e), f = s ? { gap: `${r}px` } : {};
72
+ return /* @__PURE__ */ (0, d.jsx)("div", {
73
+ className: `inline-flex bg-transparent rounded-sm select-none isolation-auto ${c} ${l} ${i}`.trim(),
74
+ style: f,
75
+ children: u
76
+ });
77
+ }
78
+ //#endregion
79
+ //#region src/components/button/SplitActionButton.tsx
80
+ var g = (e) => /* @__PURE__ */ (0, d.jsx)("svg", {
81
+ className: e.className,
82
+ fill: "none",
83
+ stroke: "currentColor",
84
+ strokeWidth: "2.5",
85
+ viewBox: "0 0 24 24",
86
+ children: /* @__PURE__ */ (0, d.jsx)("path", {
87
+ strokeLinecap: "round",
88
+ strokeLinejoin: "round",
89
+ d: "M19 9l-7 7-7-7"
90
+ })
91
+ });
92
+ function _({ children: e, color: t = "primary", size: n = "sm", startIcon: r, onMainActionClick: i, menuItems: a, className: o = "" }) {
93
+ let [s, f] = u(!1), h = l(null);
94
+ c(() => {
95
+ let e = (e) => {
96
+ h.current && !h.current.contains(e.target) && f(!1);
97
+ };
98
+ return s && window.addEventListener("mousedown", e), () => window.removeEventListener("mousedown", e);
99
+ }, [s]);
100
+ let _ = {
101
+ xs: {
102
+ height: "22px",
103
+ menuTop: "26px"
104
+ },
105
+ sm: {
106
+ height: "30px",
107
+ menuTop: "34px"
108
+ },
109
+ md: {
110
+ height: "36px",
111
+ menuTop: "40px"
112
+ },
113
+ lg: {
114
+ height: "44px",
115
+ menuTop: "48px"
116
+ }
117
+ }[n], v = t === "primary" ? "bg-vsc-accent-hover/60" : "bg-vsc-border";
118
+ return /* @__PURE__ */ (0, d.jsxs)("div", {
119
+ ref: h,
120
+ className: `relative inline-flex items-center rounded-sm select-none isolation-auto ${o}`.trim(),
121
+ style: { height: _.height },
122
+ children: [
123
+ /* @__PURE__ */ (0, d.jsx)(m, {
124
+ color: t,
125
+ size: n,
126
+ startIcon: r,
127
+ onClick: i,
128
+ className: "rounded-r-none! h-full border-r-0",
129
+ children: e
130
+ }),
131
+ /* @__PURE__ */ (0, d.jsx)("div", { className: `w-px h-3/5 pointer-events-none z-20 ${v}` }),
132
+ /* @__PURE__ */ (0, d.jsx)("button", {
133
+ onClick: () => f(!s),
134
+ className: `h-full flex items-center justify-center transition-all duration-150 focus:outline-none border-none outline-none rounded-l-none! cursor-pointer ${t === "primary" ? "bg-vsc-accent text-vsc-button-text hover:bg-vsc-accent-hover" : t === "secondary" ? "bg-vsc-bg border border-vsc-sidebar border-l-0 text-vsc-text hover:bg-vsc-hover" : "bg-transparent text-vsc-muted hover:bg-vsc-hover/40 hover:text-vsc-text"} ${n === "xs" ? "w-5 rounded-r-sm" : n === "sm" ? "w-7 rounded-r-md" : n === "md" ? "w-9 rounded-r-md" : "w-11 rounded-r-lg"}`,
135
+ children: /* @__PURE__ */ (0, d.jsx)(g, { className: `w-3.5 h-3.5 transition-transform duration-200 ${s ? "rotate-180" : ""}` })
136
+ }),
137
+ s && /* @__PURE__ */ (0, d.jsx)("div", {
138
+ className: "absolute left-0 w-48 bg-vsc-sidebar border border-vsc-border rounded shadow-xl z-50 p-1 flex flex-col font-sans text-xs text-vsc-text animate-in fade-in slide-in-from-top-2 duration-150",
139
+ style: { top: _.menuTop },
140
+ children: a.map((e) => /* @__PURE__ */ (0, d.jsxs)("button", {
141
+ onClick: () => {
142
+ e.onClick(), f(!1);
143
+ },
144
+ className: "w-full flex items-center gap-2 p-2 hover:bg-vsc-hover text-left rounded-sm border-none bg-transparent text-vsc-text hover:text-white cursor-pointer",
145
+ children: [e.startIcon && /* @__PURE__ */ (0, d.jsx)(p, {
146
+ icon: e.startIcon,
147
+ size: "xs",
148
+ className: "opacity-70"
149
+ }), /* @__PURE__ */ (0, d.jsx)("span", {
150
+ className: "truncate",
151
+ children: e.label
152
+ })]
153
+ }, e.id))
154
+ })
155
+ ]
156
+ });
157
+ }
158
+ //#endregion
159
+ //#region src/components/icons/CloseIcon.tsx
160
+ function v({ size: e = 16, className: t = "", ...n }) {
161
+ return /* @__PURE__ */ (0, d.jsxs)("svg", {
162
+ xmlns: "http://w3.org",
163
+ width: e,
164
+ height: e,
165
+ viewBox: "0 0 24 24",
166
+ fill: "none",
167
+ stroke: "currentColor",
168
+ strokeWidth: "2.5",
169
+ strokeLinecap: "round",
170
+ strokeLinejoin: "round",
171
+ className: `shrink-0 select-none ${t}`.trim(),
172
+ ...n,
173
+ children: [/* @__PURE__ */ (0, d.jsx)("line", {
174
+ x1: "18",
175
+ y1: "6",
176
+ x2: "6",
177
+ y2: "18"
178
+ }), /* @__PURE__ */ (0, d.jsx)("line", {
179
+ x1: "6",
180
+ y1: "6",
181
+ x2: "18",
182
+ y2: "18"
183
+ })]
184
+ });
185
+ }
186
+ //#endregion
187
+ //#region src/components/icons/TerminalIcon.tsx
188
+ function y({ size: e = 16, className: t = "", ...n }) {
189
+ return /* @__PURE__ */ (0, d.jsxs)("svg", {
190
+ xmlns: "http://w3.org",
191
+ width: e,
192
+ height: e,
193
+ viewBox: "0 0 24 24",
194
+ fill: "none",
195
+ stroke: "currentColor",
196
+ strokeWidth: "2.5",
197
+ strokeLinecap: "round",
198
+ strokeLinejoin: "round",
199
+ className: `shrink-0 select-none ${t}`.trim(),
200
+ ...n,
201
+ children: [/* @__PURE__ */ (0, d.jsx)("polyline", { points: "4 17 10 11 4 5" }), /* @__PURE__ */ (0, d.jsx)("line", {
202
+ x1: "12",
203
+ y1: "19",
204
+ x2: "20",
205
+ y2: "19"
206
+ })]
207
+ });
208
+ }
209
+ //#endregion
210
+ //#region src/components/icons/DocumentIcon.tsx
211
+ function b({ size: e = 16, className: t = "", ...n }) {
212
+ return /* @__PURE__ */ (0, d.jsxs)("svg", {
213
+ xmlns: "http://w3.org",
214
+ width: e,
215
+ height: e,
216
+ viewBox: "0 0 24 24",
217
+ fill: "none",
218
+ stroke: "currentColor",
219
+ strokeWidth: "2.2",
220
+ strokeLinecap: "round",
221
+ strokeLinejoin: "round",
222
+ className: `shrink-0 select-none ${t}`.trim(),
223
+ ...n,
224
+ children: [
225
+ /* @__PURE__ */ (0, d.jsx)("path", { d: "M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z" }),
226
+ /* @__PURE__ */ (0, d.jsx)("polyline", { points: "14 2 14 8 20 8" }),
227
+ /* @__PURE__ */ (0, d.jsx)("line", {
228
+ x1: "16",
229
+ y1: "13",
230
+ x2: "8",
231
+ y2: "13"
232
+ }),
233
+ /* @__PURE__ */ (0, d.jsx)("line", {
234
+ x1: "16",
235
+ y1: "17",
236
+ x2: "8",
237
+ y2: "17"
238
+ }),
239
+ /* @__PURE__ */ (0, d.jsx)("polyline", { points: "10 9 9 9 8 9" })
240
+ ]
241
+ });
242
+ }
243
+ //#endregion
244
+ //#region src/components/icons/FolderIcon.tsx
245
+ function x({ size: e = 16, className: t = "", ...n }) {
246
+ return /* @__PURE__ */ (0, d.jsx)("svg", {
247
+ xmlns: "http://w3.org",
248
+ width: e,
249
+ height: e,
250
+ viewBox: "0 0 24 24",
251
+ fill: "none",
252
+ stroke: "currentColor",
253
+ strokeWidth: "2.2",
254
+ strokeLinecap: "round",
255
+ strokeLinejoin: "round",
256
+ className: `shrink-0 select-none ${t}`.trim(),
257
+ ...n,
258
+ children: /* @__PURE__ */ (0, d.jsx)("path", { d: "M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z" })
259
+ });
260
+ }
261
+ //#endregion
262
+ //#region src/components/icons/SearchIcon.tsx
263
+ function S({ size: e = 16, className: t = "", ...n }) {
264
+ return /* @__PURE__ */ (0, d.jsxs)("svg", {
265
+ xmlns: "http://w3.org",
266
+ width: e,
267
+ height: e,
268
+ viewBox: "0 0 24 24",
269
+ fill: "none",
270
+ stroke: "currentColor",
271
+ strokeWidth: "2.5",
272
+ strokeLinecap: "round",
273
+ strokeLinejoin: "round",
274
+ className: `shrink-0 select-none ${t}`.trim(),
275
+ ...n,
276
+ children: [/* @__PURE__ */ (0, d.jsx)("circle", {
277
+ cx: "11",
278
+ cy: "11",
279
+ r: "8"
280
+ }), /* @__PURE__ */ (0, d.jsx)("line", {
281
+ x1: "21",
282
+ y1: "21",
283
+ x2: "16.65",
284
+ y2: "16.65"
285
+ })]
286
+ });
287
+ }
288
+ //#endregion
289
+ //#region src/components/icons/RefreshIcon.tsx
290
+ function C({ size: e = 16, className: t = "", ...n }) {
291
+ return /* @__PURE__ */ (0, d.jsx)("svg", {
292
+ xmlns: "http://w3.org",
293
+ width: e,
294
+ height: e,
295
+ viewBox: "0 0 24 24",
296
+ fill: "none",
297
+ stroke: "currentColor",
298
+ strokeWidth: "2.5",
299
+ strokeLinecap: "round",
300
+ strokeLinejoin: "round",
301
+ className: `shrink-0 select-none ${t}`.trim(),
302
+ ...n,
303
+ children: /* @__PURE__ */ (0, d.jsx)("path", { d: "M21.5 2v6h-6M21.34 15.57a10 10 0 1 1-.57-8.38l5.67-5.67" })
304
+ });
305
+ }
306
+ //#endregion
307
+ //#region src/components/icons/TrashIcon.tsx
308
+ function w({ size: e = 16, className: t = "", ...n }) {
309
+ return /* @__PURE__ */ (0, d.jsxs)("svg", {
310
+ xmlns: "http://w3.org",
311
+ width: e,
312
+ height: e,
313
+ viewBox: "0 0 24 24",
314
+ fill: "none",
315
+ stroke: "currentColor",
316
+ strokeWidth: "2.2",
317
+ strokeLinecap: "round",
318
+ strokeLinejoin: "round",
319
+ className: `shrink-0 select-none ${t}`.trim(),
320
+ ...n,
321
+ children: [
322
+ /* @__PURE__ */ (0, d.jsx)("polyline", { points: "3 6 5 6 21 6" }),
323
+ /* @__PURE__ */ (0, d.jsx)("path", { d: "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2" }),
324
+ /* @__PURE__ */ (0, d.jsx)("line", {
325
+ x1: "10",
326
+ y1: "11",
327
+ x2: "10",
328
+ y2: "17"
329
+ }),
330
+ /* @__PURE__ */ (0, d.jsx)("line", {
331
+ x1: "14",
332
+ y1: "11",
333
+ x2: "14",
334
+ y2: "17"
335
+ })
336
+ ]
337
+ });
338
+ }
339
+ //#endregion
340
+ //#region src/components/icons/ChevronDownIcon.tsx
341
+ function T({ size: e = 16, className: t = "", ...n }) {
342
+ return /* @__PURE__ */ (0, d.jsx)("svg", {
343
+ xmlns: "http://w3.org",
344
+ width: e,
345
+ height: e,
346
+ viewBox: "0 0 24 24",
347
+ fill: "none",
348
+ stroke: "currentColor",
349
+ strokeWidth: "2.5",
350
+ strokeLinecap: "round",
351
+ strokeLinejoin: "round",
352
+ className: `shrink-0 select-none ${t}`.trim(),
353
+ ...n,
354
+ children: /* @__PURE__ */ (0, d.jsx)("polyline", { points: "6 9 12 15 18 9" })
355
+ });
356
+ }
357
+ //#endregion
358
+ //#region src/components/icons/AddIcon.tsx
359
+ function E({ size: e = 16, className: t = "", ...n }) {
360
+ return /* @__PURE__ */ (0, d.jsxs)("svg", {
361
+ xmlns: "http://w3.org",
362
+ width: e,
363
+ height: e,
364
+ viewBox: "0 0 24 24",
365
+ fill: "none",
366
+ stroke: "currentColor",
367
+ strokeWidth: "2.5",
368
+ strokeLinecap: "round",
369
+ strokeLinejoin: "round",
370
+ className: `shrink-0 select-none ${t}`.trim(),
371
+ ...n,
372
+ children: [/* @__PURE__ */ (0, d.jsx)("line", {
373
+ x1: "12",
374
+ y1: "5",
375
+ x2: "12",
376
+ y2: "19"
377
+ }), /* @__PURE__ */ (0, d.jsx)("line", {
378
+ x1: "5",
379
+ y1: "12",
380
+ x2: "19",
381
+ y2: "12"
382
+ })]
383
+ });
384
+ }
385
+ //#endregion
386
+ //#region src/components/icons/MinusIcon.tsx
387
+ function D({ size: e = 16, className: t = "", ...n }) {
388
+ return /* @__PURE__ */ (0, d.jsx)("svg", {
389
+ xmlns: "http://w3.org",
390
+ width: e,
391
+ height: e,
392
+ viewBox: "0 0 24 24",
393
+ fill: "none",
394
+ stroke: "currentColor",
395
+ strokeWidth: "2.5",
396
+ strokeLinecap: "round",
397
+ strokeLinejoin: "round",
398
+ className: `shrink-0 select-none ${t}`.trim(),
399
+ ...n,
400
+ children: /* @__PURE__ */ (0, d.jsx)("line", {
401
+ x1: "5",
402
+ y1: "12",
403
+ x2: "19",
404
+ y2: "12"
405
+ })
406
+ });
407
+ }
408
+ //#endregion
409
+ //#region src/components/icons/ExpandIcon.tsx
410
+ function O({ size: e = 16, className: t = "", ...n }) {
411
+ return /* @__PURE__ */ (0, d.jsxs)("svg", {
412
+ xmlns: "http://w3.org",
413
+ width: e,
414
+ height: e,
415
+ viewBox: "0 0 24 24",
416
+ fill: "none",
417
+ stroke: "currentColor",
418
+ strokeWidth: "2.2",
419
+ strokeLinecap: "round",
420
+ strokeLinejoin: "round",
421
+ className: `shrink-0 select-none ${t}`.trim(),
422
+ ...n,
423
+ children: [
424
+ /* @__PURE__ */ (0, d.jsx)("polyline", { points: "15 3 21 3 21 9" }),
425
+ /* @__PURE__ */ (0, d.jsx)("polyline", { points: "9 21 3 21 3 15" }),
426
+ /* @__PURE__ */ (0, d.jsx)("line", {
427
+ x1: "21",
428
+ y1: "3",
429
+ x2: "14",
430
+ y2: "10"
431
+ }),
432
+ /* @__PURE__ */ (0, d.jsx)("line", {
433
+ x1: "3",
434
+ y1: "21",
435
+ x2: "10",
436
+ y2: "14"
437
+ })
438
+ ]
439
+ });
440
+ }
441
+ //#endregion
442
+ //#region src/components/icons/MinimizeIcon.tsx
443
+ function k({ size: e = 16, className: t = "", ...n }) {
444
+ return /* @__PURE__ */ (0, d.jsxs)("svg", {
445
+ xmlns: "http://w3.org",
446
+ width: e,
447
+ height: e,
448
+ viewBox: "0 0 24 24",
449
+ fill: "none",
450
+ stroke: "currentColor",
451
+ strokeWidth: "2.2",
452
+ strokeLinecap: "round",
453
+ strokeLinejoin: "round",
454
+ className: `shrink-0 select-none ${t}`.trim(),
455
+ ...n,
456
+ children: [
457
+ /* @__PURE__ */ (0, d.jsx)("polyline", { points: "4 14 10 14 10 20" }),
458
+ /* @__PURE__ */ (0, d.jsx)("polyline", { points: "20 10 14 10 14 4" }),
459
+ /* @__PURE__ */ (0, d.jsx)("line", {
460
+ x1: "14",
461
+ y1: "10",
462
+ x2: "21",
463
+ y2: "3"
464
+ }),
465
+ /* @__PURE__ */ (0, d.jsx)("line", {
466
+ x1: "10",
467
+ y1: "14",
468
+ x2: "3",
469
+ y2: "21"
470
+ })
471
+ ]
472
+ });
473
+ }
474
+ //#endregion
475
+ //#region src/components/icons/BlankDocIcon.tsx
476
+ function A({ size: e = 16, className: t = "", ...n }) {
477
+ return /* @__PURE__ */ (0, d.jsxs)("svg", {
478
+ xmlns: "http://w3.org",
479
+ width: e,
480
+ height: e,
481
+ viewBox: "0 0 24 24",
482
+ fill: "none",
483
+ stroke: "currentColor",
484
+ strokeWidth: "2.2",
485
+ strokeLinecap: "round",
486
+ strokeLinejoin: "round",
487
+ className: `shrink-0 select-none ${t}`.trim(),
488
+ ...n,
489
+ children: [/* @__PURE__ */ (0, d.jsx)("path", { d: "M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z" }), /* @__PURE__ */ (0, d.jsx)("polyline", { points: "14 2 14 8 20 8" })]
490
+ });
491
+ }
492
+ //#endregion
493
+ //#region src/components/icons/PlusDocIcon.tsx
494
+ function j({ size: e = 16, className: t = "", ...n }) {
495
+ return /* @__PURE__ */ (0, d.jsxs)("svg", {
496
+ xmlns: "http://w3.org",
497
+ width: e,
498
+ height: e,
499
+ viewBox: "0 0 24 24",
500
+ fill: "none",
501
+ stroke: "currentColor",
502
+ strokeWidth: "2.2",
503
+ strokeLinecap: "round",
504
+ strokeLinejoin: "round",
505
+ className: `shrink-0 select-none ${t}`.trim(),
506
+ ...n,
507
+ children: [
508
+ /* @__PURE__ */ (0, d.jsx)("path", { d: "M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z" }),
509
+ /* @__PURE__ */ (0, d.jsx)("polyline", { points: "14 2 14 8 20 8" }),
510
+ /* @__PURE__ */ (0, d.jsx)("line", {
511
+ x1: "12",
512
+ y1: "11",
513
+ x2: "12",
514
+ y2: "17"
515
+ }),
516
+ /* @__PURE__ */ (0, d.jsx)("line", {
517
+ x1: "9",
518
+ y1: "14",
519
+ x2: "15",
520
+ y2: "14"
521
+ })
522
+ ]
523
+ });
524
+ }
525
+ //#endregion
526
+ //#region src/components/icons/ChatIcon.tsx
527
+ function M({ size: e = 16, className: t = "", ...n }) {
528
+ return /* @__PURE__ */ (0, d.jsx)("svg", {
529
+ xmlns: "http://w3.org",
530
+ width: e,
531
+ height: e,
532
+ viewBox: "0 0 24 24",
533
+ fill: "none",
534
+ stroke: "currentColor",
535
+ strokeWidth: "2.2",
536
+ strokeLinecap: "round",
537
+ strokeLinejoin: "round",
538
+ className: `shrink-0 select-none ${t}`.trim(),
539
+ ...n,
540
+ children: /* @__PURE__ */ (0, d.jsx)("path", { d: "M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z" })
541
+ });
542
+ }
543
+ //#endregion
544
+ //#region src/components/icons/PlusChatIcon.tsx
545
+ function N({ size: e = 16, className: t = "", ...n }) {
546
+ return /* @__PURE__ */ (0, d.jsxs)("svg", {
547
+ xmlns: "http://w3.org",
548
+ width: e,
549
+ height: e,
550
+ viewBox: "0 0 24 24",
551
+ fill: "none",
552
+ stroke: "currentColor",
553
+ strokeWidth: "2.2",
554
+ strokeLinecap: "round",
555
+ strokeLinejoin: "round",
556
+ className: `shrink-0 select-none ${t}`.trim(),
557
+ ...n,
558
+ children: [
559
+ /* @__PURE__ */ (0, d.jsx)("path", { d: "M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z" }),
560
+ /* @__PURE__ */ (0, d.jsx)("line", {
561
+ x1: "12",
562
+ y1: "7",
563
+ x2: "12",
564
+ y2: "13"
565
+ }),
566
+ /* @__PURE__ */ (0, d.jsx)("line", {
567
+ x1: "9",
568
+ y1: "10",
569
+ x2: "15",
570
+ y2: "10"
571
+ })
572
+ ]
573
+ });
574
+ }
575
+ //#endregion
576
+ //#region src/components/icons/DeleteChatIcon.tsx
577
+ function P({ size: e = 16, className: t = "", ...n }) {
578
+ return /* @__PURE__ */ (0, d.jsxs)("svg", {
579
+ xmlns: "http://w3.org",
580
+ width: e,
581
+ height: e,
582
+ viewBox: "0 0 24 24",
583
+ fill: "none",
584
+ stroke: "currentColor",
585
+ strokeWidth: "2.2",
586
+ strokeLinecap: "round",
587
+ strokeLinejoin: "round",
588
+ className: `shrink-0 select-none ${t}`.trim(),
589
+ ...n,
590
+ children: [/* @__PURE__ */ (0, d.jsx)("path", { d: "M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z" }), /* @__PURE__ */ (0, d.jsx)("line", {
591
+ x1: "9",
592
+ y1: "10",
593
+ x2: "15",
594
+ y2: "10"
595
+ })]
596
+ });
597
+ }
598
+ //#endregion
599
+ //#region src/components/icons/CommentIcon.tsx
600
+ function F({ size: e = 16, className: t = "", ...n }) {
601
+ return /* @__PURE__ */ (0, d.jsx)("svg", {
602
+ xmlns: "http://w3.org",
603
+ width: e,
604
+ height: e,
605
+ viewBox: "0 0 24 24",
606
+ fill: "none",
607
+ stroke: "currentColor",
608
+ strokeWidth: "2.2",
609
+ strokeLinecap: "round",
610
+ strokeLinejoin: "round",
611
+ className: `shrink-0 select-none ${t}`.trim(),
612
+ ...n,
613
+ children: /* @__PURE__ */ (0, d.jsx)("path", { d: "M3 21l1.9-5.7a8.5 8.5 0 1 1 3.8 3.8z" })
614
+ });
615
+ }
616
+ //#endregion
617
+ //#region src/components/icons/PlusCommentIcon.tsx
618
+ function I({ size: e = 16, className: t = "", ...n }) {
619
+ return /* @__PURE__ */ (0, d.jsxs)("svg", {
620
+ xmlns: "http://w3.org",
621
+ width: e,
622
+ height: e,
623
+ viewBox: "0 0 24 24",
624
+ fill: "none",
625
+ stroke: "currentColor",
626
+ strokeWidth: "2.2",
627
+ strokeLinecap: "round",
628
+ strokeLinejoin: "round",
629
+ className: `shrink-0 select-none ${t}`.trim(),
630
+ ...n,
631
+ children: [
632
+ /* @__PURE__ */ (0, d.jsx)("path", { d: "M3 21l1.9-5.7a8.5 8.5 0 1 1 3.8 3.8z" }),
633
+ /* @__PURE__ */ (0, d.jsx)("line", {
634
+ x1: "12",
635
+ y1: "8",
636
+ x2: "12",
637
+ y2: "14"
638
+ }),
639
+ /* @__PURE__ */ (0, d.jsx)("line", {
640
+ x1: "9",
641
+ y1: "11",
642
+ x2: "15",
643
+ y2: "11"
644
+ })
645
+ ]
646
+ });
647
+ }
648
+ //#endregion
649
+ //#region src/components/icons/OpenFolderIcon.tsx
650
+ function L({ size: e = 16, className: t = "", ...n }) {
651
+ return /* @__PURE__ */ (0, d.jsxs)("svg", {
652
+ xmlns: "http://w3.org",
653
+ width: e,
654
+ height: e,
655
+ viewBox: "0 0 24 24",
656
+ fill: "none",
657
+ stroke: "currentColor",
658
+ strokeWidth: "2.5",
659
+ strokeLinecap: "round",
660
+ strokeLinejoin: "round",
661
+ className: `shrink-0 select-none ${t}`.trim(),
662
+ ...n,
663
+ children: [/* @__PURE__ */ (0, d.jsx)("path", { d: "M4 20h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-6.17a2 2 0 0 1-1.42-.59l-1.64-1.64A2 2 0 0 0 5.34 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2z" }), /* @__PURE__ */ (0, d.jsx)("path", {
664
+ d: "M2 11h15.26a2 2 0 0 1 1.9 1.37l2.48 7.44A1 1 0 0 1 20.7 21H5.34a2 2 0 0 1-1.9-1.37L2 11z",
665
+ fill: "currentColor",
666
+ fillOpacity: "0.05"
667
+ })]
668
+ });
669
+ }
670
+ //#endregion
671
+ //#region src/components/icons/MoreIcon.tsx
672
+ function R({ size: e = 16, className: t = "", ...n }) {
673
+ return /* @__PURE__ */ (0, d.jsxs)("svg", {
674
+ xmlns: "http://w3.org",
675
+ width: e,
676
+ height: e,
677
+ viewBox: "0 0 24 24",
678
+ fill: "none",
679
+ stroke: "currentColor",
680
+ strokeWidth: "2.5",
681
+ strokeLinecap: "round",
682
+ strokeLinejoin: "round",
683
+ className: `shrink-0 select-none ${t}`.trim(),
684
+ ...n,
685
+ children: [
686
+ /* @__PURE__ */ (0, d.jsx)("circle", {
687
+ cx: "12",
688
+ cy: "12",
689
+ r: "1"
690
+ }),
691
+ /* @__PURE__ */ (0, d.jsx)("circle", {
692
+ cx: "19",
693
+ cy: "12",
694
+ r: "1"
695
+ }),
696
+ /* @__PURE__ */ (0, d.jsx)("circle", {
697
+ cx: "5",
698
+ cy: "12",
699
+ r: "1"
700
+ })
701
+ ]
702
+ });
703
+ }
704
+ //#endregion
705
+ //#region src/components/icons/TruckIcon.tsx
706
+ function z({ size: e = 16, className: t = "", ...n }) {
707
+ return /* @__PURE__ */ (0, d.jsxs)("svg", {
708
+ xmlns: "http://w3.org",
709
+ width: e,
710
+ height: e,
711
+ viewBox: "0 0 24 24",
712
+ fill: "none",
713
+ stroke: "currentColor",
714
+ strokeWidth: "2.2",
715
+ strokeLinecap: "round",
716
+ strokeLinejoin: "round",
717
+ className: `shrink-0 select-none ${t}`.trim(),
718
+ ...n,
719
+ children: [
720
+ /* @__PURE__ */ (0, d.jsx)("rect", {
721
+ x: "1",
722
+ y: "3",
723
+ width: "15",
724
+ height: "13"
725
+ }),
726
+ /* @__PURE__ */ (0, d.jsx)("polygon", { points: "16 8 20 8 23 11 23 16 16 16 16 8" }),
727
+ /* @__PURE__ */ (0, d.jsx)("circle", {
728
+ cx: "5.5",
729
+ cy: "18.5",
730
+ r: "2.5"
731
+ }),
732
+ /* @__PURE__ */ (0, d.jsx)("circle", {
733
+ cx: "18.5",
734
+ cy: "18.5",
735
+ r: "2.5"
736
+ })
737
+ ]
738
+ });
739
+ }
740
+ //#endregion
741
+ //#region src/components/icons/PersonIcon.tsx
742
+ function B({ size: e = 16, className: t = "", ...n }) {
743
+ return /* @__PURE__ */ (0, d.jsxs)("svg", {
744
+ xmlns: "http://w3.org",
745
+ width: e,
746
+ height: e,
747
+ viewBox: "0 0 24 24",
748
+ fill: "none",
749
+ stroke: "currentColor",
750
+ strokeWidth: "2.2",
751
+ strokeLinecap: "round",
752
+ strokeLinejoin: "round",
753
+ className: `shrink-0 select-none ${t}`.trim(),
754
+ ...n,
755
+ children: [/* @__PURE__ */ (0, d.jsx)("path", { d: "M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2" }), /* @__PURE__ */ (0, d.jsx)("circle", {
756
+ cx: "12",
757
+ cy: "7",
758
+ r: "4"
759
+ })]
760
+ });
761
+ }
762
+ //#endregion
763
+ //#region src/components/icons/PlusPersonIcon.tsx
764
+ function V({ size: e = 16, className: t = "", ...n }) {
765
+ return /* @__PURE__ */ (0, d.jsxs)("svg", {
766
+ xmlns: "http://w3.org",
767
+ width: e,
768
+ height: e,
769
+ viewBox: "0 0 24 24",
770
+ fill: "none",
771
+ stroke: "currentColor",
772
+ strokeWidth: "2.2",
773
+ strokeLinecap: "round",
774
+ strokeLinejoin: "round",
775
+ className: `shrink-0 select-none ${t}`.trim(),
776
+ ...n,
777
+ children: [
778
+ /* @__PURE__ */ (0, d.jsx)("path", { d: "M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2" }),
779
+ /* @__PURE__ */ (0, d.jsx)("circle", {
780
+ cx: "8.5",
781
+ cy: "7",
782
+ r: "4"
783
+ }),
784
+ /* @__PURE__ */ (0, d.jsx)("line", {
785
+ x1: "20",
786
+ y1: "8",
787
+ x2: "20",
788
+ y2: "14"
789
+ }),
790
+ /* @__PURE__ */ (0, d.jsx)("line", {
791
+ x1: "17",
792
+ y1: "11",
793
+ x2: "23",
794
+ y2: "11"
795
+ })
796
+ ]
797
+ });
798
+ }
799
+ //#endregion
800
+ //#region src/components/icons/GroupIcon.tsx
801
+ function H({ size: e = 16, className: t = "", ...n }) {
802
+ return /* @__PURE__ */ (0, d.jsxs)("svg", {
803
+ xmlns: "http://w3.org",
804
+ width: e,
805
+ height: e,
806
+ viewBox: "0 0 24 24",
807
+ fill: "none",
808
+ stroke: "currentColor",
809
+ strokeWidth: "2.2",
810
+ strokeLinecap: "round",
811
+ strokeLinejoin: "round",
812
+ className: `shrink-0 select-none ${t}`.trim(),
813
+ ...n,
814
+ children: [
815
+ /* @__PURE__ */ (0, d.jsx)("path", { d: "M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2" }),
816
+ /* @__PURE__ */ (0, d.jsx)("circle", {
817
+ cx: "9",
818
+ cy: "7",
819
+ r: "4"
820
+ }),
821
+ /* @__PURE__ */ (0, d.jsx)("path", { d: "M23 21v-2a4 4 0 0 0-3-3.87" }),
822
+ /* @__PURE__ */ (0, d.jsx)("path", { d: "M16 3.13a4 4 0 0 1 0 7.75" })
823
+ ]
824
+ });
825
+ }
826
+ //#endregion
827
+ //#region src/components/icons/PlusDocBadgeIcon.tsx
828
+ function U({ size: e = 16, className: t = "", circleBg: n = "var(--color-vsc-hover)", circleStroke: r = "var(--color-vsc-border)", plusStroke: i = "var(--color-vsc-muted)", ...a }) {
829
+ return /* @__PURE__ */ (0, d.jsxs)("svg", {
830
+ xmlns: "http://w3.org",
831
+ width: e,
832
+ height: e,
833
+ viewBox: "0 0 24 24",
834
+ fill: "none",
835
+ stroke: "currentColor",
836
+ strokeWidth: "2.2",
837
+ strokeLinecap: "round",
838
+ strokeLinejoin: "round",
839
+ className: `shrink-0 select-none group ${t}`.trim(),
840
+ ...a,
841
+ children: [
842
+ /* @__PURE__ */ (0, d.jsx)("path", { d: "M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z" }),
843
+ /* @__PURE__ */ (0, d.jsx)("polyline", { points: "14 2 14 8 20 8" }),
844
+ /* @__PURE__ */ (0, d.jsx)("circle", {
845
+ cx: "18",
846
+ cy: "18",
847
+ r: "6",
848
+ fill: n,
849
+ stroke: r,
850
+ strokeWidth: "1.5",
851
+ className: "transition-colors duration-150 group-hover:stroke-vsc-accent/40"
852
+ }),
853
+ /* @__PURE__ */ (0, d.jsx)("line", {
854
+ x1: "18",
855
+ y1: "15",
856
+ x2: "18",
857
+ y2: "21",
858
+ stroke: i,
859
+ strokeWidth: "1.8",
860
+ className: "transition-colors duration-150 group-hover:stroke-vsc-accent"
861
+ }),
862
+ /* @__PURE__ */ (0, d.jsx)("line", {
863
+ x1: "15",
864
+ y1: "18",
865
+ x2: "21",
866
+ y2: "18",
867
+ stroke: i,
868
+ strokeWidth: "1.8",
869
+ className: "transition-colors duration-150 group-hover:stroke-vsc-accent"
870
+ })
871
+ ]
872
+ });
873
+ }
874
+ //#endregion
875
+ //#region src/components/search/SearchInput.tsx
876
+ function W({ variant: e = "simple", value: t, onChange: n, onClear: r, placeholder: i = "Search manifests or tracking codes...", resultsCount: a = 0, menuResults: o = [], onResultClick: s, onViewMoreClick: f, className: p = "", showFloatPeek: h = !1, resultIndicatorPanel: g }) {
877
+ let [_, y] = u(!1), [b, x] = u(!1), C = l(null), w = l(null);
878
+ c(() => {
879
+ let n = (n) => {
880
+ C.current && !C.current.contains(n.target) && (x(!1), e === "float" && t === "" && y(!1));
881
+ };
882
+ return window.addEventListener("mousedown", n), () => window.removeEventListener("mousedown", n);
883
+ }, [e, t]);
884
+ let T = (e) => {
885
+ e.stopPropagation(), n(""), r && r(), w.current && w.current.focus();
886
+ }, E = () => {
887
+ y(!0), setTimeout(() => w.current?.focus(), 50);
888
+ }, D = "relative flex flex-col font-sans text-xs select-none";
889
+ if (e === "simple") {
890
+ let e = a > 0 && t.length > 0;
891
+ return /* @__PURE__ */ (0, d.jsxs)("div", {
892
+ className: `relative ${D} ${p}`.trim(),
893
+ children: [/* @__PURE__ */ (0, d.jsxs)("div", {
894
+ className: "relative flex items-center bg-vsc-bg-input border border-vsc-border rounded-sm h-8 group hover:border-vsc-accent transition-colors z-20",
895
+ children: [
896
+ /* @__PURE__ */ (0, d.jsx)(S, {
897
+ size: 14,
898
+ className: "absolute left-2.5 text-vsc-muted group-hover:text-vsc-text"
899
+ }),
900
+ /* @__PURE__ */ (0, d.jsx)("input", {
901
+ ref: w,
902
+ type: "text",
903
+ value: t,
904
+ onChange: (e) => n(e.target.value),
905
+ placeholder: i,
906
+ className: "w-full h-full pl-8 pr-10 bg-transparent text-vsc-text border-none outline-none focus:outline-none placeholder-vsc-muted"
907
+ }),
908
+ t && /* @__PURE__ */ (0, d.jsx)("div", {
909
+ className: "absolute right-1 top-1/2 -translate-y-1/2 flex items-center",
910
+ children: /* @__PURE__ */ (0, d.jsx)(m, {
911
+ icon: v,
912
+ color: "ghost",
913
+ iconOnly: !0,
914
+ onClick: T,
915
+ size: "xs"
916
+ })
917
+ })
918
+ ]
919
+ }), /* @__PURE__ */ (0, d.jsx)("div", {
920
+ className: `absolute left-0 right-0 top-8 z-10 overflow-hidden transition-all duration-200 cubic-bezier(0.34, 1.56, 0.64, 1) ${e ? "" : "pointer-events-none"}`,
921
+ style: {
922
+ height: e ? "auto" : "0px",
923
+ opacity: +!!e,
924
+ transform: e ? "translateY(0px)" : "translateY(-4px)"
925
+ },
926
+ children: /* @__PURE__ */ (0, d.jsx)("div", {
927
+ className: "bg-vsc-sidebar shadow-sm p-1.5 pt-1 ",
928
+ children: g || /* @__PURE__ */ (0, d.jsxs)("p", {
929
+ className: "text-[10px] font-mono text-vsc-muted pl-1 truncate",
930
+ children: [
931
+ "Showing ",
932
+ /* @__PURE__ */ (0, d.jsx)("span", {
933
+ className: "text-vsc-accent font-bold",
934
+ children: a
935
+ }),
936
+ " matching database metrics records"
937
+ ]
938
+ })
939
+ })
940
+ })]
941
+ });
942
+ }
943
+ if (e === "float") {
944
+ let e = h && a > 0 && t.length > 0;
945
+ return /* @__PURE__ */ (0, d.jsxs)("div", {
946
+ ref: C,
947
+ className: `${D} ${p}`.trim(),
948
+ children: [/* @__PURE__ */ (0, d.jsx)("div", {
949
+ className: `flex items-center bg-vsc-bg-input border rounded-sm h-8 transition-all duration-300 ease-in-out overflow-hidden ${_ || t ? "w-64 border-vsc-accent px-2" : "w-8 border-transparent bg-transparent justify-center"}`,
950
+ children: _ || t ? /* @__PURE__ */ (0, d.jsxs)("div", {
951
+ className: "relative flex items-center w-full h-full",
952
+ children: [
953
+ /* @__PURE__ */ (0, d.jsx)(S, {
954
+ size: 14,
955
+ className: "text-vsc-text shrink-0"
956
+ }),
957
+ /* @__PURE__ */ (0, d.jsx)("input", {
958
+ ref: w,
959
+ type: "text",
960
+ value: t,
961
+ onChange: (e) => n(e.target.value),
962
+ placeholder: i,
963
+ className: "w-full h-full pl-2 pr-6 bg-transparent text-vsc-text border-none outline-none focus:outline-none placeholder-vsc-muted"
964
+ }),
965
+ t && /* @__PURE__ */ (0, d.jsx)("div", {
966
+ className: "absolute right-0 top-1/2 -translate-y-1/2 flex items-center",
967
+ children: /* @__PURE__ */ (0, d.jsx)(m, {
968
+ iconOnly: !0,
969
+ color: "ghost",
970
+ icon: v,
971
+ onClick: T,
972
+ size: "xs"
973
+ })
974
+ })
975
+ ]
976
+ }) : /* @__PURE__ */ (0, d.jsx)(m, {
977
+ iconOnly: !0,
978
+ size: "sm",
979
+ icon: S,
980
+ onClick: E,
981
+ color: "ghost",
982
+ className: "text-vsc-muted hover:text-vsc-text transition-colors",
983
+ title: "Open Expandable Search"
984
+ })
985
+ }), /* @__PURE__ */ (0, d.jsx)("div", {
986
+ className: "overflow-hidden transition-all duration-200 ease-out w-64 absolute top-8",
987
+ style: {
988
+ height: e ? "20px" : "0px",
989
+ opacity: +!!e
990
+ },
991
+ children: /* @__PURE__ */ (0, d.jsxs)("p", {
992
+ className: "text-[9px] font-mono text-vsc-accent pt-1 pl-1 truncate bg-vsc-sidebar border border-t-0 border-vsc-border p-1 rounded-b shadow-sm",
993
+ children: [
994
+ "Quick Peek: Found ",
995
+ a,
996
+ " rows"
997
+ ]
998
+ })
999
+ })]
1000
+ });
1001
+ }
1002
+ return /* @__PURE__ */ (0, d.jsxs)("div", {
1003
+ ref: C,
1004
+ className: `${D} ${p}`.trim(),
1005
+ children: [/* @__PURE__ */ (0, d.jsxs)("div", {
1006
+ className: "relative flex items-center bg-vsc-bg-input border border-vsc-border rounded-sm h-8 focus-within:border-vsc-accent",
1007
+ children: [
1008
+ /* @__PURE__ */ (0, d.jsx)(S, {
1009
+ size: 14,
1010
+ className: "absolute left-2.5 text-vsc-muted"
1011
+ }),
1012
+ /* @__PURE__ */ (0, d.jsx)("input", {
1013
+ ref: w,
1014
+ type: "text",
1015
+ value: t,
1016
+ onChange: (e) => {
1017
+ n(e.target.value), x(!0);
1018
+ },
1019
+ onFocus: () => x(!0),
1020
+ placeholder: i,
1021
+ className: "w-full h-full pl-8 pr-10 bg-transparent text-vsc-text border-none outline-none focus:outline-none placeholder-vsc-muted"
1022
+ }),
1023
+ t && /* @__PURE__ */ (0, d.jsx)("div", {
1024
+ className: "absolute right-1 top-1/2 -translate-y-1/2 flex items-center",
1025
+ children: /* @__PURE__ */ (0, d.jsx)(m, {
1026
+ iconOnly: !0,
1027
+ icon: v,
1028
+ color: "ghost",
1029
+ onClick: T,
1030
+ size: "xs"
1031
+ })
1032
+ })
1033
+ ]
1034
+ }), b && t && /* @__PURE__ */ (0, d.jsxs)("div", {
1035
+ className: "absolute top-9 left-0 w-full bg-vsc-sidebar border border-vsc-border rounded shadow-xl z-50 p-1 flex flex-col max-h-64 animate-in fade-in slide-in-from-top-1 duration-150",
1036
+ children: [/* @__PURE__ */ (0, d.jsx)("div", {
1037
+ className: "overflow-y-auto flex-1",
1038
+ children: o.length === 0 ? /* @__PURE__ */ (0, d.jsx)("div", {
1039
+ className: "p-4 text-center text-[11px] text-vsc-muted italic",
1040
+ children: "No indexed record entities match your text query constraints."
1041
+ }) : o.map((e) => /* @__PURE__ */ (0, d.jsxs)("div", {
1042
+ onClick: () => {
1043
+ s && s(e), x(!1);
1044
+ },
1045
+ className: "w-full p-2 hover:bg-vsc-hover text-left rounded-sm cursor-pointer flex flex-col space-y-0.5 transition-colors",
1046
+ children: [/* @__PURE__ */ (0, d.jsxs)("div", {
1047
+ className: "font-semibold text-vsc-text flex justify-between items-center",
1048
+ children: [/* @__PURE__ */ (0, d.jsx)("span", {
1049
+ className: "truncate",
1050
+ children: e.title
1051
+ }), e.category && /* @__PURE__ */ (0, d.jsx)("span", {
1052
+ className: "text-[9px] font-mono font-bold bg-vsc-accent/10 border border-vsc-accent/20 text-vsc-accent px-1 rounded-sm uppercase tracking-wide",
1053
+ children: e.category
1054
+ })]
1055
+ }), e.subtitle && /* @__PURE__ */ (0, d.jsx)("div", {
1056
+ className: "text-[10px] text-vsc-muted truncate",
1057
+ children: e.subtitle
1058
+ })]
1059
+ }, e.id))
1060
+ }), o.length > 0 && f && /* @__PURE__ */ (0, d.jsx)("button", {
1061
+ onClick: () => {
1062
+ f(), x(!1);
1063
+ },
1064
+ className: "w-full border-t border-vsc-border bg-vsc-bg hover:bg-vsc-hover/60 p-2 text-center text-[10px] font-bold text-vsc-accent tracking-wide uppercase transition-colors rounded-b-sm border-none cursor-pointer",
1065
+ children: "View All Matching Search Metrics Records →"
1066
+ })]
1067
+ })]
1068
+ });
1069
+ }
1070
+ //#endregion
1071
+ export { E as Add, A as BlankDoc, m as Button, h as ButtonGroup, M as Chat, T as ChevronDown, v as Close, F as Comment, P as DeleteChat, b as Document, O as Expand, x as Folder, H as Group, k as Minimize, D as Minus, R as More, L as OpenFolder, B as Person, N as PlusChat, I as PlusComment, j as PlusDoc, U as PlusDocBadge, V as PlusPerson, C as Refresh, t as ResizablePanel, S as Search, W as SearchInput, _ as SplitActionButton, a as TabButton, r as TabPanel, i as TabPanelList, y as Terminal, w as Trash, z as Truck, n as useTab };