@krak-stack/registry 0.1.27 → 0.1.28
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/components/ui/data-table.js +238 -237
- package/dist/components/ui/effect-form.js +169 -170
- package/dist/components/ui/form.js +112 -113
- package/dist/components/ui/icon-input.js +40 -43
- package/dist/components/ui/pagination.js +2 -2
- package/dist/components/ui/sidebar-layout.js +66 -71
- package/dist/components/ui/theme-switcher.js +3 -3
- package/dist/components/ui/virtualized-combobox.js +31 -34
- package/dist/lib/docs.js +133 -138
- package/dist/lib/docs.server.js +23 -47
- package/dist/lib/documentation-toolkit.js +24 -48
- package/dist/lib/httpapi-cli.js +7 -7
- package/dist/lib/httpapi-client.js +3 -3
- package/dist/lib/httpapi-helpers.js +11 -11
- package/dist/lib/httpapi-mcp.js +2 -2
- package/dist/lib/httpapi-toolkit.js +2 -2
- package/dist/lib/query.d.ts +16 -6
- package/dist/lib/query.js +17 -8
- package/dist/lib/seo.js +2 -2
- package/dist/lib/webfetch-toolkit.js +6 -6
- package/dist/services/agent/client/index.js +127 -128
- package/dist/services/agent/schema.js +5 -5
- package/dist/services/file-extraction/index.js +4 -4
- package/dist/services/file-extraction/schema.js +2 -2
- package/dist/services/health/index.js +9 -9
- package/dist/services/notification/channels/ses/index.js +2 -2
- package/dist/services/notification/channels/ses/schema.js +2 -2
- package/dist/services/notification/client/index.js +5 -5
- package/dist/services/notification/index.js +2 -2
- package/dist/services/notification/persistence/drizzle.js +2 -2
- package/dist/services/notification/persistence/index.js +15 -15
- package/dist/services/notification/persistence/schema.js +12 -12
- package/dist/services/notification/public.js +7 -7
- package/dist/services/notification/schema.js +2 -2
- package/dist/services/s3/index.js +2 -2
- package/dist/services/s3/schema.js +2 -2
- package/package.json +1 -1
|
@@ -119,31 +119,29 @@ function Button({
|
|
|
119
119
|
|
|
120
120
|
// ../../src/components/ui/input.tsx
|
|
121
121
|
import { Input as InputPrimitive } from "@base-ui/react/input";
|
|
122
|
-
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
123
122
|
|
|
124
123
|
// ../../src/components/ui/separator.tsx
|
|
125
124
|
import { Separator as SeparatorPrimitive } from "@base-ui/react/separator";
|
|
126
|
-
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
127
125
|
|
|
128
126
|
// ../../src/components/ui/sheet.tsx
|
|
129
127
|
import { Dialog as SheetPrimitive } from "@base-ui/react/dialog";
|
|
130
128
|
import { XIcon } from "lucide-react";
|
|
131
|
-
import { jsx as
|
|
129
|
+
import { jsx as jsx2, jsxs } from "react/jsx-runtime";
|
|
132
130
|
"use client";
|
|
133
131
|
function Sheet({ ...props }) {
|
|
134
|
-
return /* @__PURE__ */
|
|
132
|
+
return /* @__PURE__ */ jsx2(SheetPrimitive.Root, {
|
|
135
133
|
"data-slot": "sheet",
|
|
136
134
|
...props
|
|
137
135
|
});
|
|
138
136
|
}
|
|
139
137
|
function SheetPortal({ ...props }) {
|
|
140
|
-
return /* @__PURE__ */
|
|
138
|
+
return /* @__PURE__ */ jsx2(SheetPrimitive.Portal, {
|
|
141
139
|
"data-slot": "sheet-portal",
|
|
142
140
|
...props
|
|
143
141
|
});
|
|
144
142
|
}
|
|
145
143
|
function SheetOverlay({ className, ...props }) {
|
|
146
|
-
return /* @__PURE__ */
|
|
144
|
+
return /* @__PURE__ */ jsx2(SheetPrimitive.Backdrop, {
|
|
147
145
|
"data-slot": "sheet-overlay",
|
|
148
146
|
className: cn("fixed inset-0 z-50 bg-black/10 transition-opacity duration-150 data-ending-style:opacity-0 data-starting-style:opacity-0 supports-backdrop-filter:backdrop-blur-xs", className),
|
|
149
147
|
...props
|
|
@@ -158,7 +156,7 @@ function SheetContent({
|
|
|
158
156
|
}) {
|
|
159
157
|
return /* @__PURE__ */ jsxs(SheetPortal, {
|
|
160
158
|
children: [
|
|
161
|
-
/* @__PURE__ */
|
|
159
|
+
/* @__PURE__ */ jsx2(SheetOverlay, {}),
|
|
162
160
|
/* @__PURE__ */ jsxs(SheetPrimitive.Popup, {
|
|
163
161
|
"data-slot": "sheet-content",
|
|
164
162
|
"data-side": side,
|
|
@@ -168,14 +166,14 @@ function SheetContent({
|
|
|
168
166
|
children,
|
|
169
167
|
showCloseButton && /* @__PURE__ */ jsxs(SheetPrimitive.Close, {
|
|
170
168
|
"data-slot": "sheet-close",
|
|
171
|
-
render: /* @__PURE__ */
|
|
169
|
+
render: /* @__PURE__ */ jsx2(Button, {
|
|
172
170
|
variant: "ghost",
|
|
173
171
|
className: "absolute top-4 right-4",
|
|
174
172
|
size: "icon-sm"
|
|
175
173
|
}),
|
|
176
174
|
children: [
|
|
177
|
-
/* @__PURE__ */
|
|
178
|
-
/* @__PURE__ */
|
|
175
|
+
/* @__PURE__ */ jsx2(XIcon, {}),
|
|
176
|
+
/* @__PURE__ */ jsx2("span", {
|
|
179
177
|
className: "sr-only",
|
|
180
178
|
children: "Close"
|
|
181
179
|
})
|
|
@@ -187,14 +185,14 @@ function SheetContent({
|
|
|
187
185
|
});
|
|
188
186
|
}
|
|
189
187
|
function SheetHeader({ className, ...props }) {
|
|
190
|
-
return /* @__PURE__ */
|
|
188
|
+
return /* @__PURE__ */ jsx2("div", {
|
|
191
189
|
"data-slot": "sheet-header",
|
|
192
190
|
className: cn("flex flex-col gap-1.5 p-4", className),
|
|
193
191
|
...props
|
|
194
192
|
});
|
|
195
193
|
}
|
|
196
194
|
function SheetTitle({ className, ...props }) {
|
|
197
|
-
return /* @__PURE__ */
|
|
195
|
+
return /* @__PURE__ */ jsx2(SheetPrimitive.Title, {
|
|
198
196
|
"data-slot": "sheet-title",
|
|
199
197
|
className: cn("font-medium text-foreground", className),
|
|
200
198
|
...props
|
|
@@ -204,28 +202,25 @@ function SheetDescription({
|
|
|
204
202
|
className,
|
|
205
203
|
...props
|
|
206
204
|
}) {
|
|
207
|
-
return /* @__PURE__ */
|
|
205
|
+
return /* @__PURE__ */ jsx2(SheetPrimitive.Description, {
|
|
208
206
|
"data-slot": "sheet-description",
|
|
209
207
|
className: cn("text-sm text-muted-foreground", className),
|
|
210
208
|
...props
|
|
211
209
|
});
|
|
212
210
|
}
|
|
213
211
|
|
|
214
|
-
// ../../src/components/ui/skeleton.tsx
|
|
215
|
-
import { jsx as jsx5 } from "react/jsx-runtime";
|
|
216
|
-
|
|
217
212
|
// ../../src/components/ui/tooltip.tsx
|
|
218
213
|
import { Tooltip as TooltipPrimitive } from "@base-ui/react/tooltip";
|
|
219
|
-
import { jsx as
|
|
214
|
+
import { jsx as jsx3, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
220
215
|
"use client";
|
|
221
216
|
function Tooltip({ ...props }) {
|
|
222
|
-
return /* @__PURE__ */
|
|
217
|
+
return /* @__PURE__ */ jsx3(TooltipPrimitive.Root, {
|
|
223
218
|
"data-slot": "tooltip",
|
|
224
219
|
...props
|
|
225
220
|
});
|
|
226
221
|
}
|
|
227
222
|
function TooltipTrigger({ ...props }) {
|
|
228
|
-
return /* @__PURE__ */
|
|
223
|
+
return /* @__PURE__ */ jsx3(TooltipPrimitive.Trigger, {
|
|
229
224
|
"data-slot": "tooltip-trigger",
|
|
230
225
|
...props
|
|
231
226
|
});
|
|
@@ -239,8 +234,8 @@ function TooltipContent({
|
|
|
239
234
|
children,
|
|
240
235
|
...props
|
|
241
236
|
}) {
|
|
242
|
-
return /* @__PURE__ */
|
|
243
|
-
children: /* @__PURE__ */
|
|
237
|
+
return /* @__PURE__ */ jsx3(TooltipPrimitive.Portal, {
|
|
238
|
+
children: /* @__PURE__ */ jsx3(TooltipPrimitive.Positioner, {
|
|
244
239
|
align,
|
|
245
240
|
alignOffset,
|
|
246
241
|
side,
|
|
@@ -252,7 +247,7 @@ function TooltipContent({
|
|
|
252
247
|
...props,
|
|
253
248
|
children: [
|
|
254
249
|
children,
|
|
255
|
-
/* @__PURE__ */
|
|
250
|
+
/* @__PURE__ */ jsx3(TooltipPrimitive.Arrow, {
|
|
256
251
|
className: "bg-foreground fill-foreground z-50 size-2.5 translate-y-[calc(-50%-2px)] rotate-45 rounded-[2px] data-[side=bottom]:top-1 data-[side=inline-end]:top-1/2! data-[side=inline-end]:-left-1 data-[side=inline-end]:-translate-y-1/2 data-[side=inline-start]:top-1/2! data-[side=inline-start]:-right-1 data-[side=inline-start]:-translate-y-1/2 data-[side=left]:top-1/2! data-[side=left]:-right-1 data-[side=left]:-translate-y-1/2 data-[side=right]:top-1/2! data-[side=right]:-left-1 data-[side=right]:-translate-y-1/2 data-[side=top]:-bottom-2.5"
|
|
257
252
|
})
|
|
258
253
|
]
|
|
@@ -264,7 +259,7 @@ function TooltipContent({
|
|
|
264
259
|
// ../../src/components/ui/sidebar.tsx
|
|
265
260
|
import { PanelLeftIcon } from "lucide-react";
|
|
266
261
|
import { Schema } from "effect";
|
|
267
|
-
import { jsx as
|
|
262
|
+
import { jsx as jsx4, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
268
263
|
var SIDEBAR_COOKIE_NAME = "sidebar_state";
|
|
269
264
|
var SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;
|
|
270
265
|
var SIDEBAR_WIDTH = "16rem";
|
|
@@ -328,9 +323,9 @@ function SidebarProvider({
|
|
|
328
323
|
"--sidebar-width-icon": SIDEBAR_WIDTH_ICON,
|
|
329
324
|
...style
|
|
330
325
|
};
|
|
331
|
-
return /* @__PURE__ */
|
|
326
|
+
return /* @__PURE__ */ jsx4(SidebarContext.Provider, {
|
|
332
327
|
value: contextValue,
|
|
333
|
-
children: /* @__PURE__ */
|
|
328
|
+
children: /* @__PURE__ */ jsx4("div", {
|
|
334
329
|
"data-slot": "sidebar-wrapper",
|
|
335
330
|
style: wrapperStyle,
|
|
336
331
|
className: cn("group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar", className),
|
|
@@ -350,7 +345,7 @@ function Sidebar({
|
|
|
350
345
|
}) {
|
|
351
346
|
const { isMobile, state, openMobile, setOpenMobile } = useSidebar();
|
|
352
347
|
if (collapsible === "none") {
|
|
353
|
-
return /* @__PURE__ */
|
|
348
|
+
return /* @__PURE__ */ jsx4("div", {
|
|
354
349
|
"data-slot": "sidebar",
|
|
355
350
|
className: cn("flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground", className),
|
|
356
351
|
...props,
|
|
@@ -361,7 +356,7 @@ function Sidebar({
|
|
|
361
356
|
const mobileStyle = {
|
|
362
357
|
"--sidebar-width": SIDEBAR_WIDTH_MOBILE
|
|
363
358
|
};
|
|
364
|
-
return /* @__PURE__ */
|
|
359
|
+
return /* @__PURE__ */ jsx4(Sheet, {
|
|
365
360
|
open: openMobile,
|
|
366
361
|
onOpenChange: setOpenMobile,
|
|
367
362
|
...props,
|
|
@@ -377,15 +372,15 @@ function Sidebar({
|
|
|
377
372
|
/* @__PURE__ */ jsxs3(SheetHeader, {
|
|
378
373
|
className: "sr-only",
|
|
379
374
|
children: [
|
|
380
|
-
/* @__PURE__ */
|
|
375
|
+
/* @__PURE__ */ jsx4(SheetTitle, {
|
|
381
376
|
children: "Sidebar"
|
|
382
377
|
}),
|
|
383
|
-
/* @__PURE__ */
|
|
378
|
+
/* @__PURE__ */ jsx4(SheetDescription, {
|
|
384
379
|
children: "Displays the mobile sidebar."
|
|
385
380
|
})
|
|
386
381
|
]
|
|
387
382
|
}),
|
|
388
|
-
/* @__PURE__ */
|
|
383
|
+
/* @__PURE__ */ jsx4("div", {
|
|
389
384
|
className: "flex h-full w-full flex-col",
|
|
390
385
|
children
|
|
391
386
|
})
|
|
@@ -401,16 +396,16 @@ function Sidebar({
|
|
|
401
396
|
"data-side": side,
|
|
402
397
|
"data-slot": "sidebar",
|
|
403
398
|
children: [
|
|
404
|
-
/* @__PURE__ */
|
|
399
|
+
/* @__PURE__ */ jsx4("div", {
|
|
405
400
|
"data-slot": "sidebar-gap",
|
|
406
401
|
className: cn("relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear", "group-data-[collapsible=offcanvas]:w-0", "group-data-[side=right]:rotate-180", variant === "floating" || variant === "inset" ? "group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]" : "group-data-[collapsible=icon]:w-(--sidebar-width-icon)")
|
|
407
402
|
}),
|
|
408
|
-
/* @__PURE__ */
|
|
403
|
+
/* @__PURE__ */ jsx4("div", {
|
|
409
404
|
"data-slot": "sidebar-container",
|
|
410
405
|
"data-side": side,
|
|
411
406
|
className: cn("fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear data-[side=left]:left-0 data-[side=left]:group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)] data-[side=right]:right-0 data-[side=right]:group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)] md:flex", variant === "floating" || variant === "inset" ? "p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]" : "group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l", className),
|
|
412
407
|
...props,
|
|
413
|
-
children: /* @__PURE__ */
|
|
408
|
+
children: /* @__PURE__ */ jsx4("div", {
|
|
414
409
|
"data-sidebar": "sidebar",
|
|
415
410
|
"data-slot": "sidebar-inner",
|
|
416
411
|
className: "bg-sidebar group-data-[variant=floating]:ring-sidebar-border flex size-full flex-col group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:shadow-sm group-data-[variant=floating]:ring-1",
|
|
@@ -438,8 +433,8 @@ function SidebarTrigger({
|
|
|
438
433
|
},
|
|
439
434
|
...props,
|
|
440
435
|
children: [
|
|
441
|
-
/* @__PURE__ */
|
|
442
|
-
/* @__PURE__ */
|
|
436
|
+
/* @__PURE__ */ jsx4(PanelLeftIcon, {}),
|
|
437
|
+
/* @__PURE__ */ jsx4("span", {
|
|
443
438
|
className: "sr-only",
|
|
444
439
|
children: "Toggle Sidebar"
|
|
445
440
|
})
|
|
@@ -448,7 +443,7 @@ function SidebarTrigger({
|
|
|
448
443
|
}
|
|
449
444
|
function SidebarRail({ className, ...props }) {
|
|
450
445
|
const { toggleSidebar } = useSidebar();
|
|
451
|
-
return /* @__PURE__ */
|
|
446
|
+
return /* @__PURE__ */ jsx4("button", {
|
|
452
447
|
"data-sidebar": "rail",
|
|
453
448
|
"data-slot": "sidebar-rail",
|
|
454
449
|
"aria-label": "Toggle Sidebar",
|
|
@@ -460,14 +455,14 @@ function SidebarRail({ className, ...props }) {
|
|
|
460
455
|
});
|
|
461
456
|
}
|
|
462
457
|
function SidebarInset({ className, ...props }) {
|
|
463
|
-
return /* @__PURE__ */
|
|
458
|
+
return /* @__PURE__ */ jsx4("main", {
|
|
464
459
|
"data-slot": "sidebar-inset",
|
|
465
460
|
className: cn("relative flex w-full flex-1 flex-col bg-background md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2", className),
|
|
466
461
|
...props
|
|
467
462
|
});
|
|
468
463
|
}
|
|
469
464
|
function SidebarHeader({ className, ...props }) {
|
|
470
|
-
return /* @__PURE__ */
|
|
465
|
+
return /* @__PURE__ */ jsx4("div", {
|
|
471
466
|
"data-slot": "sidebar-header",
|
|
472
467
|
"data-sidebar": "header",
|
|
473
468
|
className: cn("flex flex-col gap-2 p-2", className),
|
|
@@ -475,7 +470,7 @@ function SidebarHeader({ className, ...props }) {
|
|
|
475
470
|
});
|
|
476
471
|
}
|
|
477
472
|
function SidebarFooter({ className, ...props }) {
|
|
478
|
-
return /* @__PURE__ */
|
|
473
|
+
return /* @__PURE__ */ jsx4("div", {
|
|
479
474
|
"data-slot": "sidebar-footer",
|
|
480
475
|
"data-sidebar": "footer",
|
|
481
476
|
className: cn("flex flex-col gap-2 p-2", className),
|
|
@@ -483,7 +478,7 @@ function SidebarFooter({ className, ...props }) {
|
|
|
483
478
|
});
|
|
484
479
|
}
|
|
485
480
|
function SidebarContent({ className, ...props }) {
|
|
486
|
-
return /* @__PURE__ */
|
|
481
|
+
return /* @__PURE__ */ jsx4("div", {
|
|
487
482
|
"data-slot": "sidebar-content",
|
|
488
483
|
"data-sidebar": "content",
|
|
489
484
|
className: cn("no-scrollbar flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden", className),
|
|
@@ -491,7 +486,7 @@ function SidebarContent({ className, ...props }) {
|
|
|
491
486
|
});
|
|
492
487
|
}
|
|
493
488
|
function SidebarGroup({ className, ...props }) {
|
|
494
|
-
return /* @__PURE__ */
|
|
489
|
+
return /* @__PURE__ */ jsx4("div", {
|
|
495
490
|
"data-slot": "sidebar-group",
|
|
496
491
|
"data-sidebar": "group",
|
|
497
492
|
className: cn("relative flex w-full min-w-0 flex-col p-2", className),
|
|
@@ -519,7 +514,7 @@ function SidebarGroupContent({
|
|
|
519
514
|
className,
|
|
520
515
|
...props
|
|
521
516
|
}) {
|
|
522
|
-
return /* @__PURE__ */
|
|
517
|
+
return /* @__PURE__ */ jsx4("div", {
|
|
523
518
|
"data-slot": "sidebar-group-content",
|
|
524
519
|
"data-sidebar": "group-content",
|
|
525
520
|
className: cn("w-full text-sm", className),
|
|
@@ -527,7 +522,7 @@ function SidebarGroupContent({
|
|
|
527
522
|
});
|
|
528
523
|
}
|
|
529
524
|
function SidebarMenu({ className, ...props }) {
|
|
530
|
-
return /* @__PURE__ */
|
|
525
|
+
return /* @__PURE__ */ jsx4("ul", {
|
|
531
526
|
"data-slot": "sidebar-menu",
|
|
532
527
|
"data-sidebar": "menu",
|
|
533
528
|
className: cn("flex w-full min-w-0 flex-col gap-1", className),
|
|
@@ -535,7 +530,7 @@ function SidebarMenu({ className, ...props }) {
|
|
|
535
530
|
});
|
|
536
531
|
}
|
|
537
532
|
function SidebarMenuItem({ className, ...props }) {
|
|
538
|
-
return /* @__PURE__ */
|
|
533
|
+
return /* @__PURE__ */ jsx4("li", {
|
|
539
534
|
"data-slot": "sidebar-menu-item",
|
|
540
535
|
"data-sidebar": "menu-item",
|
|
541
536
|
className: cn("group/menu-item relative", className),
|
|
@@ -574,7 +569,7 @@ function SidebarMenuButton({
|
|
|
574
569
|
props: mergeProps2({
|
|
575
570
|
className: cn(sidebarMenuButtonVariants({ variant, size }), className)
|
|
576
571
|
}, props),
|
|
577
|
-
render: !tooltip ? render : /* @__PURE__ */
|
|
572
|
+
render: !tooltip ? render : /* @__PURE__ */ jsx4(TooltipTrigger, {
|
|
578
573
|
render
|
|
579
574
|
}),
|
|
580
575
|
state: {
|
|
@@ -591,7 +586,7 @@ function SidebarMenuButton({
|
|
|
591
586
|
return /* @__PURE__ */ jsxs3(Tooltip, {
|
|
592
587
|
children: [
|
|
593
588
|
comp,
|
|
594
|
-
/* @__PURE__ */
|
|
589
|
+
/* @__PURE__ */ jsx4(TooltipContent, {
|
|
595
590
|
side: "right",
|
|
596
591
|
align: "center",
|
|
597
592
|
hidden: state !== "collapsed" || isMobile,
|
|
@@ -602,7 +597,7 @@ function SidebarMenuButton({
|
|
|
602
597
|
}
|
|
603
598
|
|
|
604
599
|
// ../../src/components/ui/sidebar-layout.tsx
|
|
605
|
-
import { jsx as
|
|
600
|
+
import { jsx as jsx5, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
606
601
|
var SIDEBAR_COOKIE_NAME2 = "sidebar_state";
|
|
607
602
|
var SidebarOpenCookie = Schema2.Literals(["true", "false"]).annotate({
|
|
608
603
|
identifier: "SidebarOpenCookie"
|
|
@@ -626,38 +621,38 @@ function AppSidebar({ collapsible, footer, groups, header }) {
|
|
|
626
621
|
return /* @__PURE__ */ jsxs4(Sidebar, {
|
|
627
622
|
collapsible,
|
|
628
623
|
children: [
|
|
629
|
-
header && /* @__PURE__ */
|
|
624
|
+
header && /* @__PURE__ */ jsx5(SidebarHeader, {
|
|
630
625
|
children: header
|
|
631
626
|
}),
|
|
632
|
-
/* @__PURE__ */
|
|
627
|
+
/* @__PURE__ */ jsx5(SidebarContent, {
|
|
633
628
|
className: "group-data-[collapsible=icon]:overflow-x-hidden group-data-[collapsible=icon]:overflow-y-auto",
|
|
634
629
|
children: groups.map((group) => /* @__PURE__ */ jsxs4(SidebarGroup, {
|
|
635
630
|
children: [
|
|
636
|
-
/* @__PURE__ */
|
|
631
|
+
/* @__PURE__ */ jsx5(SidebarGroupLabel, {
|
|
637
632
|
children: group.label()
|
|
638
633
|
}),
|
|
639
|
-
/* @__PURE__ */
|
|
640
|
-
children: /* @__PURE__ */
|
|
634
|
+
/* @__PURE__ */ jsx5(SidebarGroupContent, {
|
|
635
|
+
children: /* @__PURE__ */ jsx5(SidebarMenu, {
|
|
641
636
|
children: group.items.map((item) => {
|
|
642
|
-
const render = item.external ? /* @__PURE__ */
|
|
637
|
+
const render = item.external ? /* @__PURE__ */ jsx5("a", {
|
|
643
638
|
href: item.href,
|
|
644
639
|
target: "_blank",
|
|
645
640
|
rel: "noreferrer"
|
|
646
|
-
}) : /* @__PURE__ */
|
|
641
|
+
}) : /* @__PURE__ */ jsx5(Link, {
|
|
647
642
|
to: item.href
|
|
648
643
|
});
|
|
649
|
-
return /* @__PURE__ */
|
|
644
|
+
return /* @__PURE__ */ jsx5(SidebarMenuItem, {
|
|
650
645
|
children: /* @__PURE__ */ jsxs4(SidebarMenuButton, {
|
|
651
646
|
isActive: !item.external && pathname === item.href,
|
|
652
647
|
onClick: closeMobileSidebar,
|
|
653
648
|
render,
|
|
654
649
|
tooltip: item.label(),
|
|
655
650
|
children: [
|
|
656
|
-
item.icon ? /* @__PURE__ */
|
|
657
|
-
/* @__PURE__ */
|
|
651
|
+
item.icon ? /* @__PURE__ */ jsx5(item.icon, {}) : null,
|
|
652
|
+
/* @__PURE__ */ jsx5("span", {
|
|
658
653
|
children: item.label()
|
|
659
654
|
}),
|
|
660
|
-
item.badge ? /* @__PURE__ */
|
|
655
|
+
item.badge ? /* @__PURE__ */ jsx5(Badge, {
|
|
661
656
|
className: "ml-auto",
|
|
662
657
|
variant: "secondary",
|
|
663
658
|
children: item.badge()
|
|
@@ -671,10 +666,10 @@ function AppSidebar({ collapsible, footer, groups, header }) {
|
|
|
671
666
|
]
|
|
672
667
|
}, group.label()))
|
|
673
668
|
}),
|
|
674
|
-
footer ? /* @__PURE__ */
|
|
669
|
+
footer ? /* @__PURE__ */ jsx5(SidebarFooter, {
|
|
675
670
|
children: footer
|
|
676
671
|
}) : null,
|
|
677
|
-
/* @__PURE__ */
|
|
672
|
+
/* @__PURE__ */ jsx5(SidebarRail, {})
|
|
678
673
|
]
|
|
679
674
|
});
|
|
680
675
|
}
|
|
@@ -690,7 +685,7 @@ function SidebarPageHeader({
|
|
|
690
685
|
/* @__PURE__ */ jsxs4("div", {
|
|
691
686
|
className: "flex flex-col gap-2",
|
|
692
687
|
children: [
|
|
693
|
-
badge ? /* @__PURE__ */
|
|
688
|
+
badge ? /* @__PURE__ */ jsx5(Badge, {
|
|
694
689
|
className: "w-fit",
|
|
695
690
|
variant: badge.variant ?? "secondary",
|
|
696
691
|
children: badge.label
|
|
@@ -698,11 +693,11 @@ function SidebarPageHeader({
|
|
|
698
693
|
/* @__PURE__ */ jsxs4("div", {
|
|
699
694
|
className: "flex flex-col gap-1",
|
|
700
695
|
children: [
|
|
701
|
-
/* @__PURE__ */
|
|
696
|
+
/* @__PURE__ */ jsx5("h1", {
|
|
702
697
|
className: "text-3xl font-bold tracking-tight",
|
|
703
698
|
children: title
|
|
704
699
|
}),
|
|
705
|
-
description ? /* @__PURE__ */
|
|
700
|
+
description ? /* @__PURE__ */ jsx5("p", {
|
|
706
701
|
className: "text-muted-foreground max-w-2xl text-sm",
|
|
707
702
|
children: description
|
|
708
703
|
}) : null
|
|
@@ -710,7 +705,7 @@ function SidebarPageHeader({
|
|
|
710
705
|
})
|
|
711
706
|
]
|
|
712
707
|
}),
|
|
713
|
-
actions ? /* @__PURE__ */
|
|
708
|
+
actions ? /* @__PURE__ */ jsx5("div", {
|
|
714
709
|
className: "flex gap-2",
|
|
715
710
|
children: actions
|
|
716
711
|
}) : null
|
|
@@ -734,7 +729,7 @@ function SidebarLayout({
|
|
|
734
729
|
onOpenChange: setSidebarOpen,
|
|
735
730
|
className: cn(fullPage && "xl:h-svh xl:min-h-0 xl:overflow-hidden"),
|
|
736
731
|
children: [
|
|
737
|
-
/* @__PURE__ */
|
|
732
|
+
/* @__PURE__ */ jsx5(AppSidebar, {
|
|
738
733
|
collapsible: sidebarCollapsible,
|
|
739
734
|
footer: sidebarFooter,
|
|
740
735
|
groups,
|
|
@@ -746,16 +741,16 @@ function SidebarLayout({
|
|
|
746
741
|
/* @__PURE__ */ jsxs4("header", {
|
|
747
742
|
className: "bg-background/95 supports-[backdrop-filter]:bg-background/60 sticky top-0 z-10 flex h-14 shrink-0 items-center gap-2 border-b px-4 backdrop-blur",
|
|
748
743
|
children: [
|
|
749
|
-
/* @__PURE__ */
|
|
750
|
-
/* @__PURE__ */
|
|
744
|
+
/* @__PURE__ */ jsx5(SidebarTrigger, {}),
|
|
745
|
+
/* @__PURE__ */ jsx5("div", {
|
|
751
746
|
className: "ml-auto flex items-center gap-2",
|
|
752
747
|
children: headerActions
|
|
753
748
|
})
|
|
754
749
|
]
|
|
755
750
|
}),
|
|
756
|
-
/* @__PURE__ */
|
|
751
|
+
/* @__PURE__ */ jsx5("div", {
|
|
757
752
|
className: contentClassName ?? "flex flex-col gap-6 px-5 py-6 md:px-8",
|
|
758
|
-
children: children ?? /* @__PURE__ */
|
|
753
|
+
children: children ?? /* @__PURE__ */ jsx5(Outlet, {})
|
|
759
754
|
})
|
|
760
755
|
]
|
|
761
756
|
})
|
|
@@ -763,7 +758,7 @@ function SidebarLayout({
|
|
|
763
758
|
});
|
|
764
759
|
}
|
|
765
760
|
export {
|
|
766
|
-
|
|
761
|
+
SidebarLayout,
|
|
767
762
|
SidebarPageHeader,
|
|
768
|
-
|
|
763
|
+
useSidebarLayout
|
|
769
764
|
};
|
|
@@ -76,13 +76,10 @@ function Input({ className, type, ...props }) {
|
|
|
76
76
|
});
|
|
77
77
|
}
|
|
78
78
|
|
|
79
|
-
// ../../src/components/ui/textarea.tsx
|
|
80
|
-
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
81
|
-
|
|
82
79
|
// ../../src/components/ui/input-group.tsx
|
|
83
|
-
import { jsx as
|
|
80
|
+
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
84
81
|
function InputGroup({ className, ...props }) {
|
|
85
|
-
return /* @__PURE__ */
|
|
82
|
+
return /* @__PURE__ */ jsx3("div", {
|
|
86
83
|
"data-slot": "input-group",
|
|
87
84
|
role: "group",
|
|
88
85
|
className: cn("group/input-group relative flex h-9 w-full min-w-0 items-center rounded-md border border-input shadow-xs transition-[color,box-shadow] outline-none in-data-[slot=combobox-content]:focus-within:border-inherit in-data-[slot=combobox-content]:focus-within:ring-0 has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-3 has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50 has-[[data-slot][aria-invalid=true]]:border-destructive has-[[data-slot][aria-invalid=true]]:ring-3 has-[[data-slot][aria-invalid=true]]:ring-destructive/20 has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>textarea]:h-auto dark:bg-input/30 dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40 has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>input]:pr-1.5 has-[>[data-align=inline-start]]:[&>input]:pl-1.5", className),
|
|
@@ -115,7 +112,7 @@ function InputGroupInput({
|
|
|
115
112
|
className,
|
|
116
113
|
...props
|
|
117
114
|
}) {
|
|
118
|
-
return /* @__PURE__ */
|
|
115
|
+
return /* @__PURE__ */ jsx3(Input, {
|
|
119
116
|
"data-slot": "input-group-control",
|
|
120
117
|
className: cn("flex-1 rounded-none border-0 bg-transparent shadow-none ring-0 focus-visible:ring-0 aria-invalid:ring-0 dark:bg-transparent", className),
|
|
121
118
|
...props
|
|
@@ -559,7 +556,7 @@ function isCustomStrategy(strategy2) {
|
|
|
559
556
|
}
|
|
560
557
|
|
|
561
558
|
// ../../src/components/ui/virtualized-combobox.tsx
|
|
562
|
-
import { jsx as
|
|
559
|
+
import { jsx as jsx4, jsxs } from "react/jsx-runtime";
|
|
563
560
|
"use client";
|
|
564
561
|
var messages = {
|
|
565
562
|
en: {
|
|
@@ -635,19 +632,19 @@ var VirtualizedComboboxList = ({
|
|
|
635
632
|
virtualizer.measure();
|
|
636
633
|
}, [virtualizer]);
|
|
637
634
|
if (filteredItems.length === 0) {
|
|
638
|
-
return /* @__PURE__ */
|
|
635
|
+
return /* @__PURE__ */ jsx4("div", {
|
|
639
636
|
className: "text-muted-foreground py-6 text-center text-sm",
|
|
640
637
|
children: emptyLabel
|
|
641
638
|
});
|
|
642
639
|
}
|
|
643
|
-
return /* @__PURE__ */
|
|
640
|
+
return /* @__PURE__ */ jsx4(ComboboxPrimitive.List, {
|
|
644
641
|
className: "scroll-py-1 overflow-auto overscroll-contain p-1",
|
|
645
642
|
ref: handleScrollElementRef,
|
|
646
643
|
style: {
|
|
647
644
|
height: Math.min(virtualizer.getTotalSize() + 8, 288),
|
|
648
645
|
maxHeight: "var(--available-height)"
|
|
649
646
|
},
|
|
650
|
-
children: /* @__PURE__ */
|
|
647
|
+
children: /* @__PURE__ */ jsx4("div", {
|
|
651
648
|
className: "relative w-full",
|
|
652
649
|
role: "presentation",
|
|
653
650
|
style: { height: virtualizer.getTotalSize() },
|
|
@@ -660,9 +657,9 @@ var VirtualizedComboboxList = ({
|
|
|
660
657
|
transform: `translateY(${virtualItem.start}px)`
|
|
661
658
|
};
|
|
662
659
|
if (entry.kind === "group") {
|
|
663
|
-
return /* @__PURE__ */
|
|
660
|
+
return /* @__PURE__ */ jsx4(ComboboxPrimitive.Group, {
|
|
664
661
|
className: "contents",
|
|
665
|
-
children: /* @__PURE__ */
|
|
662
|
+
children: /* @__PURE__ */ jsx4(ComboboxPrimitive.GroupLabel, {
|
|
666
663
|
className: "text-muted-foreground absolute top-0 left-0 w-full px-2 pt-3 pb-1 text-xs",
|
|
667
664
|
"data-index": virtualItem.index,
|
|
668
665
|
ref: virtualizer.measureElement,
|
|
@@ -681,13 +678,13 @@ var VirtualizedComboboxList = ({
|
|
|
681
678
|
style,
|
|
682
679
|
value: entry.item,
|
|
683
680
|
children: [
|
|
684
|
-
renderItem?.(entry.item) ?? /* @__PURE__ */
|
|
681
|
+
renderItem?.(entry.item) ?? /* @__PURE__ */ jsx4("span", {
|
|
685
682
|
className: "min-w-0 truncate",
|
|
686
683
|
children: entry.item.label
|
|
687
684
|
}),
|
|
688
|
-
/* @__PURE__ */
|
|
685
|
+
/* @__PURE__ */ jsx4(ComboboxPrimitive.ItemIndicator, {
|
|
689
686
|
className: "absolute right-2 flex size-4 items-center justify-center",
|
|
690
|
-
children: /* @__PURE__ */
|
|
687
|
+
children: /* @__PURE__ */ jsx4(Check, {})
|
|
691
688
|
})
|
|
692
689
|
]
|
|
693
690
|
}, entry.item.value);
|
|
@@ -706,8 +703,8 @@ var VirtualizedComboboxContent = ({
|
|
|
706
703
|
virtualizerRef
|
|
707
704
|
}) => {
|
|
708
705
|
const labels = virtualizedComboboxMessages(messageOverrides);
|
|
709
|
-
return /* @__PURE__ */
|
|
710
|
-
children: /* @__PURE__ */
|
|
706
|
+
return /* @__PURE__ */ jsx4(ComboboxPrimitive.Portal, {
|
|
707
|
+
children: /* @__PURE__ */ jsx4(ComboboxPrimitive.Positioner, {
|
|
711
708
|
align: "start",
|
|
712
709
|
className: "isolate z-50",
|
|
713
710
|
side: "bottom",
|
|
@@ -715,17 +712,17 @@ var VirtualizedComboboxContent = ({
|
|
|
715
712
|
children: /* @__PURE__ */ jsxs(ComboboxPrimitive.Popup, {
|
|
716
713
|
className: cn("relative max-h-(--available-height) w-(--anchor-width) max-w-(--available-width) min-w-0 origin-(--transform-origin) overflow-hidden rounded-md bg-popover text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-[side=bottom]:slide-in-from-top-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-in-95", contentClassName),
|
|
717
714
|
children: [
|
|
718
|
-
/* @__PURE__ */
|
|
715
|
+
/* @__PURE__ */ jsx4("div", {
|
|
719
716
|
className: "min-w-0 p-1 pb-0",
|
|
720
|
-
children: /* @__PURE__ */
|
|
717
|
+
children: /* @__PURE__ */ jsx4(InputGroup, {
|
|
721
718
|
className: "border-input/30 bg-input/30 h-8 w-full min-w-0 shadow-none",
|
|
722
|
-
children: /* @__PURE__ */
|
|
719
|
+
children: /* @__PURE__ */ jsx4(ComboboxPrimitive.Input, {
|
|
723
720
|
placeholder: labels.search,
|
|
724
|
-
render: /* @__PURE__ */
|
|
721
|
+
render: /* @__PURE__ */ jsx4(InputGroupInput, {})
|
|
725
722
|
})
|
|
726
723
|
})
|
|
727
724
|
}),
|
|
728
|
-
/* @__PURE__ */
|
|
725
|
+
/* @__PURE__ */ jsx4(VirtualizedComboboxList, {
|
|
729
726
|
emptyLabel,
|
|
730
727
|
groupSelections,
|
|
731
728
|
itemIndexRef,
|
|
@@ -748,20 +745,20 @@ var defaultTrigger = (ariaLabel, ariaInvalid, disabled, label, triggerId) => /*
|
|
|
748
745
|
type: "button",
|
|
749
746
|
variant: "outline",
|
|
750
747
|
children: [
|
|
751
|
-
/* @__PURE__ */
|
|
748
|
+
/* @__PURE__ */ jsx4("span", {
|
|
752
749
|
className: "min-w-0 flex-1 truncate pr-7 text-left",
|
|
753
750
|
children: label
|
|
754
751
|
}),
|
|
755
|
-
/* @__PURE__ */
|
|
752
|
+
/* @__PURE__ */ jsx4(ChevronsUpDown, {
|
|
756
753
|
className: "text-muted-foreground shrink-0 opacity-70"
|
|
757
754
|
})
|
|
758
755
|
]
|
|
759
756
|
});
|
|
760
|
-
var defaultClear = (label) => /* @__PURE__ */
|
|
757
|
+
var defaultClear = (label) => /* @__PURE__ */ jsx4(ComboboxPrimitive.Clear, {
|
|
761
758
|
"aria-label": label,
|
|
762
759
|
className: "text-muted-foreground hover:bg-muted hover:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 absolute top-1/2 right-7 z-10 flex size-6 -translate-y-1/2 items-center justify-center rounded-sm outline-none focus-visible:border focus-visible:ring-3",
|
|
763
760
|
type: "button",
|
|
764
|
-
children: /* @__PURE__ */
|
|
761
|
+
children: /* @__PURE__ */ jsx4(X, {
|
|
765
762
|
className: "size-3.5"
|
|
766
763
|
})
|
|
767
764
|
});
|
|
@@ -800,13 +797,13 @@ var VirtualizedComboboxSingle = (props) => {
|
|
|
800
797
|
/* @__PURE__ */ jsxs("div", {
|
|
801
798
|
className: "relative",
|
|
802
799
|
children: [
|
|
803
|
-
/* @__PURE__ */
|
|
800
|
+
/* @__PURE__ */ jsx4(ComboboxPrimitive.Trigger, {
|
|
804
801
|
render: props.trigger ?? defaultTrigger(props.ariaLabel, props.ariaInvalid, props.disabled, selectedLabel(props.value, props.placeholder), props.triggerId)
|
|
805
802
|
}),
|
|
806
803
|
props.trigger ? null : defaultClear(labels.clear)
|
|
807
804
|
]
|
|
808
805
|
}),
|
|
809
|
-
/* @__PURE__ */
|
|
806
|
+
/* @__PURE__ */ jsx4(VirtualizedComboboxContent, {
|
|
810
807
|
...props,
|
|
811
808
|
groupSelections: false,
|
|
812
809
|
itemIndexRef,
|
|
@@ -842,13 +839,13 @@ var VirtualizedComboboxMultiple = (props) => {
|
|
|
842
839
|
/* @__PURE__ */ jsxs("div", {
|
|
843
840
|
className: "relative",
|
|
844
841
|
children: [
|
|
845
|
-
/* @__PURE__ */
|
|
842
|
+
/* @__PURE__ */ jsx4(ComboboxPrimitive.Trigger, {
|
|
846
843
|
render: props.trigger ?? defaultTrigger(props.ariaLabel, props.ariaInvalid, props.disabled, selectedLabel(props.value, props.placeholder), props.triggerId)
|
|
847
844
|
}),
|
|
848
845
|
props.trigger ? null : defaultClear(labels.clear)
|
|
849
846
|
]
|
|
850
847
|
}),
|
|
851
|
-
/* @__PURE__ */
|
|
848
|
+
/* @__PURE__ */ jsx4(VirtualizedComboboxContent, {
|
|
852
849
|
...props,
|
|
853
850
|
groupSelections: true,
|
|
854
851
|
itemIndexRef,
|
|
@@ -859,13 +856,13 @@ var VirtualizedComboboxMultiple = (props) => {
|
|
|
859
856
|
});
|
|
860
857
|
};
|
|
861
858
|
function VirtualizedCombobox(props) {
|
|
862
|
-
return props.multiple ? /* @__PURE__ */
|
|
859
|
+
return props.multiple ? /* @__PURE__ */ jsx4(VirtualizedComboboxMultiple, {
|
|
863
860
|
...props
|
|
864
|
-
}) : /* @__PURE__ */
|
|
861
|
+
}) : /* @__PURE__ */ jsx4(VirtualizedComboboxSingle, {
|
|
865
862
|
...props
|
|
866
863
|
});
|
|
867
864
|
}
|
|
868
865
|
export {
|
|
869
|
-
|
|
870
|
-
|
|
866
|
+
VirtualizedCombobox,
|
|
867
|
+
virtualizedComboboxMessages
|
|
871
868
|
};
|