@krak-stack/registry 0.1.27 → 0.1.29
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/code-block.js +1 -5
- package/dist/components/ui/copy-button.js +1 -5
- package/dist/components/ui/data-table.js +239 -242
- package/dist/components/ui/editing-locale-switcher.js +1 -5
- package/dist/components/ui/effect-form.js +170 -175
- package/dist/components/ui/error-component.d.ts +30 -0
- package/dist/components/ui/error-component.js +811 -0
- package/dist/components/ui/file-picker.js +1 -5
- package/dist/components/ui/form.js +113 -118
- package/dist/components/ui/google-map.js +1 -5
- package/dist/components/ui/icon-input.js +41 -48
- package/dist/components/ui/loading.js +1 -5
- package/dist/components/ui/locale-switcher.js +1 -5
- package/dist/components/ui/pagination.js +3 -7
- package/dist/components/ui/search-menu.js +1 -5
- package/dist/components/ui/sidebar-layout.js +67 -76
- package/dist/components/ui/stats-card.js +1 -5
- package/dist/components/ui/theme-switcher.js +4 -8
- package/dist/components/ui/virtualized-combobox.js +32 -39
- package/dist/lib/docs.js +134 -143
- package/dist/lib/docs.server.js +24 -49
- package/dist/lib/documentation-toolkit.js +25 -50
- 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/utils.d.ts +1 -2
- package/dist/lib/webfetch-toolkit.js +6 -6
- package/dist/services/agent/client/index.js +130 -133
- package/dist/services/agent/index.d.ts +4 -0
- package/dist/services/agent/index.js +1 -1
- package/dist/services/agent/schema.d.ts +6 -0
- package/dist/services/agent/schema.js +6 -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 +6 -10
- 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 +8 -12
- 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 +7 -4
|
@@ -10,11 +10,7 @@ import { useRender } from "@base-ui/react/use-render";
|
|
|
10
10
|
import { cva } from "class-variance-authority";
|
|
11
11
|
|
|
12
12
|
// ../../src/lib/utils.ts
|
|
13
|
-
import {
|
|
14
|
-
import { twMerge } from "tailwind-merge";
|
|
15
|
-
function cn(...inputs) {
|
|
16
|
-
return twMerge(clsx(inputs));
|
|
17
|
-
}
|
|
13
|
+
import { cn } from "cn";
|
|
18
14
|
|
|
19
15
|
// ../../src/components/ui/badge.tsx
|
|
20
16
|
var badgeVariants = cva("group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!", {
|
|
@@ -119,31 +115,29 @@ function Button({
|
|
|
119
115
|
|
|
120
116
|
// ../../src/components/ui/input.tsx
|
|
121
117
|
import { Input as InputPrimitive } from "@base-ui/react/input";
|
|
122
|
-
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
123
118
|
|
|
124
119
|
// ../../src/components/ui/separator.tsx
|
|
125
120
|
import { Separator as SeparatorPrimitive } from "@base-ui/react/separator";
|
|
126
|
-
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
127
121
|
|
|
128
122
|
// ../../src/components/ui/sheet.tsx
|
|
129
123
|
import { Dialog as SheetPrimitive } from "@base-ui/react/dialog";
|
|
130
124
|
import { XIcon } from "lucide-react";
|
|
131
|
-
import { jsx as
|
|
125
|
+
import { jsx as jsx2, jsxs } from "react/jsx-runtime";
|
|
132
126
|
"use client";
|
|
133
127
|
function Sheet({ ...props }) {
|
|
134
|
-
return /* @__PURE__ */
|
|
128
|
+
return /* @__PURE__ */ jsx2(SheetPrimitive.Root, {
|
|
135
129
|
"data-slot": "sheet",
|
|
136
130
|
...props
|
|
137
131
|
});
|
|
138
132
|
}
|
|
139
133
|
function SheetPortal({ ...props }) {
|
|
140
|
-
return /* @__PURE__ */
|
|
134
|
+
return /* @__PURE__ */ jsx2(SheetPrimitive.Portal, {
|
|
141
135
|
"data-slot": "sheet-portal",
|
|
142
136
|
...props
|
|
143
137
|
});
|
|
144
138
|
}
|
|
145
139
|
function SheetOverlay({ className, ...props }) {
|
|
146
|
-
return /* @__PURE__ */
|
|
140
|
+
return /* @__PURE__ */ jsx2(SheetPrimitive.Backdrop, {
|
|
147
141
|
"data-slot": "sheet-overlay",
|
|
148
142
|
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
143
|
...props
|
|
@@ -158,7 +152,7 @@ function SheetContent({
|
|
|
158
152
|
}) {
|
|
159
153
|
return /* @__PURE__ */ jsxs(SheetPortal, {
|
|
160
154
|
children: [
|
|
161
|
-
/* @__PURE__ */
|
|
155
|
+
/* @__PURE__ */ jsx2(SheetOverlay, {}),
|
|
162
156
|
/* @__PURE__ */ jsxs(SheetPrimitive.Popup, {
|
|
163
157
|
"data-slot": "sheet-content",
|
|
164
158
|
"data-side": side,
|
|
@@ -168,14 +162,14 @@ function SheetContent({
|
|
|
168
162
|
children,
|
|
169
163
|
showCloseButton && /* @__PURE__ */ jsxs(SheetPrimitive.Close, {
|
|
170
164
|
"data-slot": "sheet-close",
|
|
171
|
-
render: /* @__PURE__ */
|
|
165
|
+
render: /* @__PURE__ */ jsx2(Button, {
|
|
172
166
|
variant: "ghost",
|
|
173
167
|
className: "absolute top-4 right-4",
|
|
174
168
|
size: "icon-sm"
|
|
175
169
|
}),
|
|
176
170
|
children: [
|
|
177
|
-
/* @__PURE__ */
|
|
178
|
-
/* @__PURE__ */
|
|
171
|
+
/* @__PURE__ */ jsx2(XIcon, {}),
|
|
172
|
+
/* @__PURE__ */ jsx2("span", {
|
|
179
173
|
className: "sr-only",
|
|
180
174
|
children: "Close"
|
|
181
175
|
})
|
|
@@ -187,14 +181,14 @@ function SheetContent({
|
|
|
187
181
|
});
|
|
188
182
|
}
|
|
189
183
|
function SheetHeader({ className, ...props }) {
|
|
190
|
-
return /* @__PURE__ */
|
|
184
|
+
return /* @__PURE__ */ jsx2("div", {
|
|
191
185
|
"data-slot": "sheet-header",
|
|
192
186
|
className: cn("flex flex-col gap-1.5 p-4", className),
|
|
193
187
|
...props
|
|
194
188
|
});
|
|
195
189
|
}
|
|
196
190
|
function SheetTitle({ className, ...props }) {
|
|
197
|
-
return /* @__PURE__ */
|
|
191
|
+
return /* @__PURE__ */ jsx2(SheetPrimitive.Title, {
|
|
198
192
|
"data-slot": "sheet-title",
|
|
199
193
|
className: cn("font-medium text-foreground", className),
|
|
200
194
|
...props
|
|
@@ -204,28 +198,25 @@ function SheetDescription({
|
|
|
204
198
|
className,
|
|
205
199
|
...props
|
|
206
200
|
}) {
|
|
207
|
-
return /* @__PURE__ */
|
|
201
|
+
return /* @__PURE__ */ jsx2(SheetPrimitive.Description, {
|
|
208
202
|
"data-slot": "sheet-description",
|
|
209
203
|
className: cn("text-sm text-muted-foreground", className),
|
|
210
204
|
...props
|
|
211
205
|
});
|
|
212
206
|
}
|
|
213
207
|
|
|
214
|
-
// ../../src/components/ui/skeleton.tsx
|
|
215
|
-
import { jsx as jsx5 } from "react/jsx-runtime";
|
|
216
|
-
|
|
217
208
|
// ../../src/components/ui/tooltip.tsx
|
|
218
209
|
import { Tooltip as TooltipPrimitive } from "@base-ui/react/tooltip";
|
|
219
|
-
import { jsx as
|
|
210
|
+
import { jsx as jsx3, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
220
211
|
"use client";
|
|
221
212
|
function Tooltip({ ...props }) {
|
|
222
|
-
return /* @__PURE__ */
|
|
213
|
+
return /* @__PURE__ */ jsx3(TooltipPrimitive.Root, {
|
|
223
214
|
"data-slot": "tooltip",
|
|
224
215
|
...props
|
|
225
216
|
});
|
|
226
217
|
}
|
|
227
218
|
function TooltipTrigger({ ...props }) {
|
|
228
|
-
return /* @__PURE__ */
|
|
219
|
+
return /* @__PURE__ */ jsx3(TooltipPrimitive.Trigger, {
|
|
229
220
|
"data-slot": "tooltip-trigger",
|
|
230
221
|
...props
|
|
231
222
|
});
|
|
@@ -239,8 +230,8 @@ function TooltipContent({
|
|
|
239
230
|
children,
|
|
240
231
|
...props
|
|
241
232
|
}) {
|
|
242
|
-
return /* @__PURE__ */
|
|
243
|
-
children: /* @__PURE__ */
|
|
233
|
+
return /* @__PURE__ */ jsx3(TooltipPrimitive.Portal, {
|
|
234
|
+
children: /* @__PURE__ */ jsx3(TooltipPrimitive.Positioner, {
|
|
244
235
|
align,
|
|
245
236
|
alignOffset,
|
|
246
237
|
side,
|
|
@@ -252,7 +243,7 @@ function TooltipContent({
|
|
|
252
243
|
...props,
|
|
253
244
|
children: [
|
|
254
245
|
children,
|
|
255
|
-
/* @__PURE__ */
|
|
246
|
+
/* @__PURE__ */ jsx3(TooltipPrimitive.Arrow, {
|
|
256
247
|
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
248
|
})
|
|
258
249
|
]
|
|
@@ -264,7 +255,7 @@ function TooltipContent({
|
|
|
264
255
|
// ../../src/components/ui/sidebar.tsx
|
|
265
256
|
import { PanelLeftIcon } from "lucide-react";
|
|
266
257
|
import { Schema } from "effect";
|
|
267
|
-
import { jsx as
|
|
258
|
+
import { jsx as jsx4, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
268
259
|
var SIDEBAR_COOKIE_NAME = "sidebar_state";
|
|
269
260
|
var SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;
|
|
270
261
|
var SIDEBAR_WIDTH = "16rem";
|
|
@@ -328,9 +319,9 @@ function SidebarProvider({
|
|
|
328
319
|
"--sidebar-width-icon": SIDEBAR_WIDTH_ICON,
|
|
329
320
|
...style
|
|
330
321
|
};
|
|
331
|
-
return /* @__PURE__ */
|
|
322
|
+
return /* @__PURE__ */ jsx4(SidebarContext.Provider, {
|
|
332
323
|
value: contextValue,
|
|
333
|
-
children: /* @__PURE__ */
|
|
324
|
+
children: /* @__PURE__ */ jsx4("div", {
|
|
334
325
|
"data-slot": "sidebar-wrapper",
|
|
335
326
|
style: wrapperStyle,
|
|
336
327
|
className: cn("group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar", className),
|
|
@@ -350,7 +341,7 @@ function Sidebar({
|
|
|
350
341
|
}) {
|
|
351
342
|
const { isMobile, state, openMobile, setOpenMobile } = useSidebar();
|
|
352
343
|
if (collapsible === "none") {
|
|
353
|
-
return /* @__PURE__ */
|
|
344
|
+
return /* @__PURE__ */ jsx4("div", {
|
|
354
345
|
"data-slot": "sidebar",
|
|
355
346
|
className: cn("flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground", className),
|
|
356
347
|
...props,
|
|
@@ -361,7 +352,7 @@ function Sidebar({
|
|
|
361
352
|
const mobileStyle = {
|
|
362
353
|
"--sidebar-width": SIDEBAR_WIDTH_MOBILE
|
|
363
354
|
};
|
|
364
|
-
return /* @__PURE__ */
|
|
355
|
+
return /* @__PURE__ */ jsx4(Sheet, {
|
|
365
356
|
open: openMobile,
|
|
366
357
|
onOpenChange: setOpenMobile,
|
|
367
358
|
...props,
|
|
@@ -377,15 +368,15 @@ function Sidebar({
|
|
|
377
368
|
/* @__PURE__ */ jsxs3(SheetHeader, {
|
|
378
369
|
className: "sr-only",
|
|
379
370
|
children: [
|
|
380
|
-
/* @__PURE__ */
|
|
371
|
+
/* @__PURE__ */ jsx4(SheetTitle, {
|
|
381
372
|
children: "Sidebar"
|
|
382
373
|
}),
|
|
383
|
-
/* @__PURE__ */
|
|
374
|
+
/* @__PURE__ */ jsx4(SheetDescription, {
|
|
384
375
|
children: "Displays the mobile sidebar."
|
|
385
376
|
})
|
|
386
377
|
]
|
|
387
378
|
}),
|
|
388
|
-
/* @__PURE__ */
|
|
379
|
+
/* @__PURE__ */ jsx4("div", {
|
|
389
380
|
className: "flex h-full w-full flex-col",
|
|
390
381
|
children
|
|
391
382
|
})
|
|
@@ -401,16 +392,16 @@ function Sidebar({
|
|
|
401
392
|
"data-side": side,
|
|
402
393
|
"data-slot": "sidebar",
|
|
403
394
|
children: [
|
|
404
|
-
/* @__PURE__ */
|
|
395
|
+
/* @__PURE__ */ jsx4("div", {
|
|
405
396
|
"data-slot": "sidebar-gap",
|
|
406
397
|
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
398
|
}),
|
|
408
|
-
/* @__PURE__ */
|
|
399
|
+
/* @__PURE__ */ jsx4("div", {
|
|
409
400
|
"data-slot": "sidebar-container",
|
|
410
401
|
"data-side": side,
|
|
411
402
|
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
403
|
...props,
|
|
413
|
-
children: /* @__PURE__ */
|
|
404
|
+
children: /* @__PURE__ */ jsx4("div", {
|
|
414
405
|
"data-sidebar": "sidebar",
|
|
415
406
|
"data-slot": "sidebar-inner",
|
|
416
407
|
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 +429,8 @@ function SidebarTrigger({
|
|
|
438
429
|
},
|
|
439
430
|
...props,
|
|
440
431
|
children: [
|
|
441
|
-
/* @__PURE__ */
|
|
442
|
-
/* @__PURE__ */
|
|
432
|
+
/* @__PURE__ */ jsx4(PanelLeftIcon, {}),
|
|
433
|
+
/* @__PURE__ */ jsx4("span", {
|
|
443
434
|
className: "sr-only",
|
|
444
435
|
children: "Toggle Sidebar"
|
|
445
436
|
})
|
|
@@ -448,7 +439,7 @@ function SidebarTrigger({
|
|
|
448
439
|
}
|
|
449
440
|
function SidebarRail({ className, ...props }) {
|
|
450
441
|
const { toggleSidebar } = useSidebar();
|
|
451
|
-
return /* @__PURE__ */
|
|
442
|
+
return /* @__PURE__ */ jsx4("button", {
|
|
452
443
|
"data-sidebar": "rail",
|
|
453
444
|
"data-slot": "sidebar-rail",
|
|
454
445
|
"aria-label": "Toggle Sidebar",
|
|
@@ -460,14 +451,14 @@ function SidebarRail({ className, ...props }) {
|
|
|
460
451
|
});
|
|
461
452
|
}
|
|
462
453
|
function SidebarInset({ className, ...props }) {
|
|
463
|
-
return /* @__PURE__ */
|
|
454
|
+
return /* @__PURE__ */ jsx4("main", {
|
|
464
455
|
"data-slot": "sidebar-inset",
|
|
465
456
|
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
457
|
...props
|
|
467
458
|
});
|
|
468
459
|
}
|
|
469
460
|
function SidebarHeader({ className, ...props }) {
|
|
470
|
-
return /* @__PURE__ */
|
|
461
|
+
return /* @__PURE__ */ jsx4("div", {
|
|
471
462
|
"data-slot": "sidebar-header",
|
|
472
463
|
"data-sidebar": "header",
|
|
473
464
|
className: cn("flex flex-col gap-2 p-2", className),
|
|
@@ -475,7 +466,7 @@ function SidebarHeader({ className, ...props }) {
|
|
|
475
466
|
});
|
|
476
467
|
}
|
|
477
468
|
function SidebarFooter({ className, ...props }) {
|
|
478
|
-
return /* @__PURE__ */
|
|
469
|
+
return /* @__PURE__ */ jsx4("div", {
|
|
479
470
|
"data-slot": "sidebar-footer",
|
|
480
471
|
"data-sidebar": "footer",
|
|
481
472
|
className: cn("flex flex-col gap-2 p-2", className),
|
|
@@ -483,7 +474,7 @@ function SidebarFooter({ className, ...props }) {
|
|
|
483
474
|
});
|
|
484
475
|
}
|
|
485
476
|
function SidebarContent({ className, ...props }) {
|
|
486
|
-
return /* @__PURE__ */
|
|
477
|
+
return /* @__PURE__ */ jsx4("div", {
|
|
487
478
|
"data-slot": "sidebar-content",
|
|
488
479
|
"data-sidebar": "content",
|
|
489
480
|
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 +482,7 @@ function SidebarContent({ className, ...props }) {
|
|
|
491
482
|
});
|
|
492
483
|
}
|
|
493
484
|
function SidebarGroup({ className, ...props }) {
|
|
494
|
-
return /* @__PURE__ */
|
|
485
|
+
return /* @__PURE__ */ jsx4("div", {
|
|
495
486
|
"data-slot": "sidebar-group",
|
|
496
487
|
"data-sidebar": "group",
|
|
497
488
|
className: cn("relative flex w-full min-w-0 flex-col p-2", className),
|
|
@@ -519,7 +510,7 @@ function SidebarGroupContent({
|
|
|
519
510
|
className,
|
|
520
511
|
...props
|
|
521
512
|
}) {
|
|
522
|
-
return /* @__PURE__ */
|
|
513
|
+
return /* @__PURE__ */ jsx4("div", {
|
|
523
514
|
"data-slot": "sidebar-group-content",
|
|
524
515
|
"data-sidebar": "group-content",
|
|
525
516
|
className: cn("w-full text-sm", className),
|
|
@@ -527,7 +518,7 @@ function SidebarGroupContent({
|
|
|
527
518
|
});
|
|
528
519
|
}
|
|
529
520
|
function SidebarMenu({ className, ...props }) {
|
|
530
|
-
return /* @__PURE__ */
|
|
521
|
+
return /* @__PURE__ */ jsx4("ul", {
|
|
531
522
|
"data-slot": "sidebar-menu",
|
|
532
523
|
"data-sidebar": "menu",
|
|
533
524
|
className: cn("flex w-full min-w-0 flex-col gap-1", className),
|
|
@@ -535,7 +526,7 @@ function SidebarMenu({ className, ...props }) {
|
|
|
535
526
|
});
|
|
536
527
|
}
|
|
537
528
|
function SidebarMenuItem({ className, ...props }) {
|
|
538
|
-
return /* @__PURE__ */
|
|
529
|
+
return /* @__PURE__ */ jsx4("li", {
|
|
539
530
|
"data-slot": "sidebar-menu-item",
|
|
540
531
|
"data-sidebar": "menu-item",
|
|
541
532
|
className: cn("group/menu-item relative", className),
|
|
@@ -574,7 +565,7 @@ function SidebarMenuButton({
|
|
|
574
565
|
props: mergeProps2({
|
|
575
566
|
className: cn(sidebarMenuButtonVariants({ variant, size }), className)
|
|
576
567
|
}, props),
|
|
577
|
-
render: !tooltip ? render : /* @__PURE__ */
|
|
568
|
+
render: !tooltip ? render : /* @__PURE__ */ jsx4(TooltipTrigger, {
|
|
578
569
|
render
|
|
579
570
|
}),
|
|
580
571
|
state: {
|
|
@@ -591,7 +582,7 @@ function SidebarMenuButton({
|
|
|
591
582
|
return /* @__PURE__ */ jsxs3(Tooltip, {
|
|
592
583
|
children: [
|
|
593
584
|
comp,
|
|
594
|
-
/* @__PURE__ */
|
|
585
|
+
/* @__PURE__ */ jsx4(TooltipContent, {
|
|
595
586
|
side: "right",
|
|
596
587
|
align: "center",
|
|
597
588
|
hidden: state !== "collapsed" || isMobile,
|
|
@@ -602,7 +593,7 @@ function SidebarMenuButton({
|
|
|
602
593
|
}
|
|
603
594
|
|
|
604
595
|
// ../../src/components/ui/sidebar-layout.tsx
|
|
605
|
-
import { jsx as
|
|
596
|
+
import { jsx as jsx5, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
606
597
|
var SIDEBAR_COOKIE_NAME2 = "sidebar_state";
|
|
607
598
|
var SidebarOpenCookie = Schema2.Literals(["true", "false"]).annotate({
|
|
608
599
|
identifier: "SidebarOpenCookie"
|
|
@@ -626,38 +617,38 @@ function AppSidebar({ collapsible, footer, groups, header }) {
|
|
|
626
617
|
return /* @__PURE__ */ jsxs4(Sidebar, {
|
|
627
618
|
collapsible,
|
|
628
619
|
children: [
|
|
629
|
-
header && /* @__PURE__ */
|
|
620
|
+
header && /* @__PURE__ */ jsx5(SidebarHeader, {
|
|
630
621
|
children: header
|
|
631
622
|
}),
|
|
632
|
-
/* @__PURE__ */
|
|
623
|
+
/* @__PURE__ */ jsx5(SidebarContent, {
|
|
633
624
|
className: "group-data-[collapsible=icon]:overflow-x-hidden group-data-[collapsible=icon]:overflow-y-auto",
|
|
634
625
|
children: groups.map((group) => /* @__PURE__ */ jsxs4(SidebarGroup, {
|
|
635
626
|
children: [
|
|
636
|
-
/* @__PURE__ */
|
|
627
|
+
/* @__PURE__ */ jsx5(SidebarGroupLabel, {
|
|
637
628
|
children: group.label()
|
|
638
629
|
}),
|
|
639
|
-
/* @__PURE__ */
|
|
640
|
-
children: /* @__PURE__ */
|
|
630
|
+
/* @__PURE__ */ jsx5(SidebarGroupContent, {
|
|
631
|
+
children: /* @__PURE__ */ jsx5(SidebarMenu, {
|
|
641
632
|
children: group.items.map((item) => {
|
|
642
|
-
const render = item.external ? /* @__PURE__ */
|
|
633
|
+
const render = item.external ? /* @__PURE__ */ jsx5("a", {
|
|
643
634
|
href: item.href,
|
|
644
635
|
target: "_blank",
|
|
645
636
|
rel: "noreferrer"
|
|
646
|
-
}) : /* @__PURE__ */
|
|
637
|
+
}) : /* @__PURE__ */ jsx5(Link, {
|
|
647
638
|
to: item.href
|
|
648
639
|
});
|
|
649
|
-
return /* @__PURE__ */
|
|
640
|
+
return /* @__PURE__ */ jsx5(SidebarMenuItem, {
|
|
650
641
|
children: /* @__PURE__ */ jsxs4(SidebarMenuButton, {
|
|
651
642
|
isActive: !item.external && pathname === item.href,
|
|
652
643
|
onClick: closeMobileSidebar,
|
|
653
644
|
render,
|
|
654
645
|
tooltip: item.label(),
|
|
655
646
|
children: [
|
|
656
|
-
item.icon ? /* @__PURE__ */
|
|
657
|
-
/* @__PURE__ */
|
|
647
|
+
item.icon ? /* @__PURE__ */ jsx5(item.icon, {}) : null,
|
|
648
|
+
/* @__PURE__ */ jsx5("span", {
|
|
658
649
|
children: item.label()
|
|
659
650
|
}),
|
|
660
|
-
item.badge ? /* @__PURE__ */
|
|
651
|
+
item.badge ? /* @__PURE__ */ jsx5(Badge, {
|
|
661
652
|
className: "ml-auto",
|
|
662
653
|
variant: "secondary",
|
|
663
654
|
children: item.badge()
|
|
@@ -671,10 +662,10 @@ function AppSidebar({ collapsible, footer, groups, header }) {
|
|
|
671
662
|
]
|
|
672
663
|
}, group.label()))
|
|
673
664
|
}),
|
|
674
|
-
footer ? /* @__PURE__ */
|
|
665
|
+
footer ? /* @__PURE__ */ jsx5(SidebarFooter, {
|
|
675
666
|
children: footer
|
|
676
667
|
}) : null,
|
|
677
|
-
/* @__PURE__ */
|
|
668
|
+
/* @__PURE__ */ jsx5(SidebarRail, {})
|
|
678
669
|
]
|
|
679
670
|
});
|
|
680
671
|
}
|
|
@@ -690,7 +681,7 @@ function SidebarPageHeader({
|
|
|
690
681
|
/* @__PURE__ */ jsxs4("div", {
|
|
691
682
|
className: "flex flex-col gap-2",
|
|
692
683
|
children: [
|
|
693
|
-
badge ? /* @__PURE__ */
|
|
684
|
+
badge ? /* @__PURE__ */ jsx5(Badge, {
|
|
694
685
|
className: "w-fit",
|
|
695
686
|
variant: badge.variant ?? "secondary",
|
|
696
687
|
children: badge.label
|
|
@@ -698,11 +689,11 @@ function SidebarPageHeader({
|
|
|
698
689
|
/* @__PURE__ */ jsxs4("div", {
|
|
699
690
|
className: "flex flex-col gap-1",
|
|
700
691
|
children: [
|
|
701
|
-
/* @__PURE__ */
|
|
692
|
+
/* @__PURE__ */ jsx5("h1", {
|
|
702
693
|
className: "text-3xl font-bold tracking-tight",
|
|
703
694
|
children: title
|
|
704
695
|
}),
|
|
705
|
-
description ? /* @__PURE__ */
|
|
696
|
+
description ? /* @__PURE__ */ jsx5("p", {
|
|
706
697
|
className: "text-muted-foreground max-w-2xl text-sm",
|
|
707
698
|
children: description
|
|
708
699
|
}) : null
|
|
@@ -710,7 +701,7 @@ function SidebarPageHeader({
|
|
|
710
701
|
})
|
|
711
702
|
]
|
|
712
703
|
}),
|
|
713
|
-
actions ? /* @__PURE__ */
|
|
704
|
+
actions ? /* @__PURE__ */ jsx5("div", {
|
|
714
705
|
className: "flex gap-2",
|
|
715
706
|
children: actions
|
|
716
707
|
}) : null
|
|
@@ -734,7 +725,7 @@ function SidebarLayout({
|
|
|
734
725
|
onOpenChange: setSidebarOpen,
|
|
735
726
|
className: cn(fullPage && "xl:h-svh xl:min-h-0 xl:overflow-hidden"),
|
|
736
727
|
children: [
|
|
737
|
-
/* @__PURE__ */
|
|
728
|
+
/* @__PURE__ */ jsx5(AppSidebar, {
|
|
738
729
|
collapsible: sidebarCollapsible,
|
|
739
730
|
footer: sidebarFooter,
|
|
740
731
|
groups,
|
|
@@ -746,16 +737,16 @@ function SidebarLayout({
|
|
|
746
737
|
/* @__PURE__ */ jsxs4("header", {
|
|
747
738
|
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
739
|
children: [
|
|
749
|
-
/* @__PURE__ */
|
|
750
|
-
/* @__PURE__ */
|
|
740
|
+
/* @__PURE__ */ jsx5(SidebarTrigger, {}),
|
|
741
|
+
/* @__PURE__ */ jsx5("div", {
|
|
751
742
|
className: "ml-auto flex items-center gap-2",
|
|
752
743
|
children: headerActions
|
|
753
744
|
})
|
|
754
745
|
]
|
|
755
746
|
}),
|
|
756
|
-
/* @__PURE__ */
|
|
747
|
+
/* @__PURE__ */ jsx5("div", {
|
|
757
748
|
className: contentClassName ?? "flex flex-col gap-6 px-5 py-6 md:px-8",
|
|
758
|
-
children: children ?? /* @__PURE__ */
|
|
749
|
+
children: children ?? /* @__PURE__ */ jsx5(Outlet, {})
|
|
759
750
|
})
|
|
760
751
|
]
|
|
761
752
|
})
|
|
@@ -763,7 +754,7 @@ function SidebarLayout({
|
|
|
763
754
|
});
|
|
764
755
|
}
|
|
765
756
|
export {
|
|
766
|
-
|
|
757
|
+
SidebarLayout,
|
|
767
758
|
SidebarPageHeader,
|
|
768
|
-
|
|
759
|
+
useSidebarLayout
|
|
769
760
|
};
|
|
@@ -5,11 +5,7 @@ import {
|
|
|
5
5
|
} from "react";
|
|
6
6
|
|
|
7
7
|
// ../../src/lib/utils.ts
|
|
8
|
-
import {
|
|
9
|
-
import { twMerge } from "tailwind-merge";
|
|
10
|
-
function cn(...inputs) {
|
|
11
|
-
return twMerge(clsx(inputs));
|
|
12
|
-
}
|
|
8
|
+
import { cn } from "cn";
|
|
13
9
|
|
|
14
10
|
// ../../src/components/ui/card.tsx
|
|
15
11
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -15,11 +15,7 @@ import { Button as ButtonPrimitive } from "@base-ui/react/button";
|
|
|
15
15
|
import { cva } from "class-variance-authority";
|
|
16
16
|
|
|
17
17
|
// ../../src/lib/utils.ts
|
|
18
|
-
import {
|
|
19
|
-
import { twMerge } from "tailwind-merge";
|
|
20
|
-
function cn(...inputs) {
|
|
21
|
-
return twMerge(clsx(inputs));
|
|
22
|
-
}
|
|
18
|
+
import { cn } from "cn";
|
|
23
19
|
|
|
24
20
|
// ../../src/components/ui/button.tsx
|
|
25
21
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -776,8 +772,8 @@ var ThemeOptionIcon = ({ theme }) => {
|
|
|
776
772
|
});
|
|
777
773
|
};
|
|
778
774
|
export {
|
|
779
|
-
|
|
780
|
-
themes,
|
|
775
|
+
ThemeProvider,
|
|
781
776
|
ThemeSwitcher,
|
|
782
|
-
|
|
777
|
+
themes,
|
|
778
|
+
useTheme
|
|
783
779
|
};
|