@krak-stack/registry 0.2.0 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/components/ui/app-brand.js +17 -17
  3. package/dist/components/ui/code-block.js +6 -6
  4. package/dist/components/ui/color-picker.js +26 -28
  5. package/dist/components/ui/copy-button.js +4 -4
  6. package/dist/components/ui/data-table.js +441 -442
  7. package/dist/components/ui/editing-locale-switcher.js +10 -10
  8. package/dist/components/ui/effect-form.js +185 -186
  9. package/dist/components/ui/error-component.js +6 -6
  10. package/dist/components/ui/file-picker.js +2 -2
  11. package/dist/components/ui/form.d.ts +5 -5
  12. package/dist/components/ui/form.js +138 -139
  13. package/dist/components/ui/google-map.js +2 -2
  14. package/dist/components/ui/icon-input.js +47 -50
  15. package/dist/components/ui/krakstack-provider.js +2 -2
  16. package/dist/components/ui/locale-switcher.js +4 -4
  17. package/dist/components/ui/pagination.js +2 -2
  18. package/dist/components/ui/search-menu.js +2 -2
  19. package/dist/components/ui/sidebar-layout.js +67 -72
  20. package/dist/components/ui/theme-switcher.js +6 -6
  21. package/dist/components/ui/virtualized-combobox.js +33 -36
  22. package/dist/lib/docs.js +166 -171
  23. package/dist/lib/docs.server.js +18 -40
  24. package/dist/lib/documentation-toolkit.js +19 -41
  25. package/dist/lib/httpapi-adapter.js +2 -2
  26. package/dist/lib/httpapi-cli.js +7 -7
  27. package/dist/lib/query.js +11 -11
  28. package/dist/lib/seo.js +2 -2
  29. package/dist/lib/webfetch-toolkit.js +6 -6
  30. package/dist/oxlint/anti-slop/index.js +2 -2
  31. package/dist/services/agent/client/index.js +153 -155
  32. package/dist/services/agent/index.js +2 -2
  33. package/dist/services/agent/schema.js +5 -5
  34. package/dist/services/events/browser.js +6 -6
  35. package/dist/services/events/client/audit-log-table.js +445 -446
  36. package/dist/services/events/index.js +59 -59
  37. package/dist/services/events/migrations.js +2 -2
  38. package/dist/services/events/record.js +2 -2
  39. package/dist/services/events/schema.js +39 -39
  40. package/dist/services/file-extraction/index.js +4 -4
  41. package/dist/services/file-extraction/schema.js +2 -2
  42. package/dist/services/health/index.js +9 -9
  43. package/dist/services/notification/channels/ses/index.js +2 -2
  44. package/dist/services/notification/channels/ses/schema.js +2 -2
  45. package/dist/services/notification/client/index.js +5 -5
  46. package/dist/services/notification/index.js +2 -2
  47. package/dist/services/notification/persistence/drizzle.js +2 -2
  48. package/dist/services/notification/persistence/index.js +15 -15
  49. package/dist/services/notification/persistence/schema.js +12 -12
  50. package/dist/services/notification/public.js +7 -7
  51. package/dist/services/notification/schema.js +2 -2
  52. package/dist/services/opentelemetry/api.js +2 -2
  53. package/dist/services/opentelemetry/browser.js +7 -7
  54. package/dist/services/opentelemetry/web-vitals.js +2 -2
  55. package/dist/services/s3/index.js +2 -2
  56. package/dist/services/s3/schema.js +2 -2
  57. package/dist/services/speech/schema.js +9 -9
  58. package/dist/services/webhooks/client/delivery-table.js +479 -480
  59. package/dist/services/webhooks/http-client.js +5 -5
  60. package/dist/services/webhooks/index.js +34 -34
  61. package/dist/services/webhooks/migrations.js +5 -5
  62. package/dist/services/webhooks/schema.js +20 -20
  63. package/dist/services/webhooks/url.js +5 -5
  64. package/package.json +1 -1
@@ -112,31 +112,29 @@ function Button({
112
112
 
113
113
  // ../../src/components/ui/input.tsx
114
114
  import { Input as InputPrimitive } from "@base-ui/react/input";
115
- import { jsx as jsx2 } from "react/jsx-runtime";
116
115
 
117
116
  // ../../src/components/ui/separator.tsx
118
117
  import { Separator as SeparatorPrimitive } from "@base-ui/react/separator";
119
- import { jsx as jsx3 } from "react/jsx-runtime";
120
118
 
121
119
  // ../../src/components/ui/sheet.tsx
122
120
  import { Dialog as SheetPrimitive } from "@base-ui/react/dialog";
123
121
  import { XIcon } from "lucide-react";
124
- import { jsx as jsx4, jsxs } from "react/jsx-runtime";
122
+ import { jsx as jsx2, jsxs } from "react/jsx-runtime";
125
123
  "use client";
126
124
  function Sheet({ ...props }) {
127
- return /* @__PURE__ */ jsx4(SheetPrimitive.Root, {
125
+ return /* @__PURE__ */ jsx2(SheetPrimitive.Root, {
128
126
  "data-slot": "sheet",
129
127
  ...props
130
128
  });
131
129
  }
132
130
  function SheetPortal({ ...props }) {
133
- return /* @__PURE__ */ jsx4(SheetPrimitive.Portal, {
131
+ return /* @__PURE__ */ jsx2(SheetPrimitive.Portal, {
134
132
  "data-slot": "sheet-portal",
135
133
  ...props
136
134
  });
137
135
  }
138
136
  function SheetOverlay({ className, ...props }) {
139
- return /* @__PURE__ */ jsx4(SheetPrimitive.Backdrop, {
137
+ return /* @__PURE__ */ jsx2(SheetPrimitive.Backdrop, {
140
138
  "data-slot": "sheet-overlay",
141
139
  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),
142
140
  ...props
@@ -151,7 +149,7 @@ function SheetContent({
151
149
  }) {
152
150
  return /* @__PURE__ */ jsxs(SheetPortal, {
153
151
  children: [
154
- /* @__PURE__ */ jsx4(SheetOverlay, {}),
152
+ /* @__PURE__ */ jsx2(SheetOverlay, {}),
155
153
  /* @__PURE__ */ jsxs(SheetPrimitive.Popup, {
156
154
  "data-slot": "sheet-content",
157
155
  "data-side": side,
@@ -161,14 +159,14 @@ function SheetContent({
161
159
  children,
162
160
  showCloseButton && /* @__PURE__ */ jsxs(SheetPrimitive.Close, {
163
161
  "data-slot": "sheet-close",
164
- render: /* @__PURE__ */ jsx4(Button, {
162
+ render: /* @__PURE__ */ jsx2(Button, {
165
163
  variant: "ghost",
166
164
  className: "absolute top-4 right-4",
167
165
  size: "icon-sm"
168
166
  }),
169
167
  children: [
170
- /* @__PURE__ */ jsx4(XIcon, {}),
171
- /* @__PURE__ */ jsx4("span", {
168
+ /* @__PURE__ */ jsx2(XIcon, {}),
169
+ /* @__PURE__ */ jsx2("span", {
172
170
  className: "sr-only",
173
171
  children: "Close"
174
172
  })
@@ -180,14 +178,14 @@ function SheetContent({
180
178
  });
181
179
  }
182
180
  function SheetHeader({ className, ...props }) {
183
- return /* @__PURE__ */ jsx4("div", {
181
+ return /* @__PURE__ */ jsx2("div", {
184
182
  "data-slot": "sheet-header",
185
183
  className: cn("flex flex-col gap-1.5 p-4", className),
186
184
  ...props
187
185
  });
188
186
  }
189
187
  function SheetTitle({ className, ...props }) {
190
- return /* @__PURE__ */ jsx4(SheetPrimitive.Title, {
188
+ return /* @__PURE__ */ jsx2(SheetPrimitive.Title, {
191
189
  "data-slot": "sheet-title",
192
190
  className: cn("font-medium text-foreground", className),
193
191
  ...props
@@ -197,28 +195,25 @@ function SheetDescription({
197
195
  className,
198
196
  ...props
199
197
  }) {
200
- return /* @__PURE__ */ jsx4(SheetPrimitive.Description, {
198
+ return /* @__PURE__ */ jsx2(SheetPrimitive.Description, {
201
199
  "data-slot": "sheet-description",
202
200
  className: cn("text-sm text-muted-foreground", className),
203
201
  ...props
204
202
  });
205
203
  }
206
204
 
207
- // ../../src/components/ui/skeleton.tsx
208
- import { jsx as jsx5 } from "react/jsx-runtime";
209
-
210
205
  // ../../src/components/ui/tooltip.tsx
211
206
  import { Tooltip as TooltipPrimitive } from "@base-ui/react/tooltip";
212
- import { jsx as jsx6, jsxs as jsxs2 } from "react/jsx-runtime";
207
+ import { jsx as jsx3, jsxs as jsxs2 } from "react/jsx-runtime";
213
208
  "use client";
214
209
  function Tooltip({ ...props }) {
215
- return /* @__PURE__ */ jsx6(TooltipPrimitive.Root, {
210
+ return /* @__PURE__ */ jsx3(TooltipPrimitive.Root, {
216
211
  "data-slot": "tooltip",
217
212
  ...props
218
213
  });
219
214
  }
220
215
  function TooltipTrigger({ ...props }) {
221
- return /* @__PURE__ */ jsx6(TooltipPrimitive.Trigger, {
216
+ return /* @__PURE__ */ jsx3(TooltipPrimitive.Trigger, {
222
217
  "data-slot": "tooltip-trigger",
223
218
  ...props
224
219
  });
@@ -232,8 +227,8 @@ function TooltipContent({
232
227
  children,
233
228
  ...props
234
229
  }) {
235
- return /* @__PURE__ */ jsx6(TooltipPrimitive.Portal, {
236
- children: /* @__PURE__ */ jsx6(TooltipPrimitive.Positioner, {
230
+ return /* @__PURE__ */ jsx3(TooltipPrimitive.Portal, {
231
+ children: /* @__PURE__ */ jsx3(TooltipPrimitive.Positioner, {
237
232
  align,
238
233
  alignOffset,
239
234
  side,
@@ -245,7 +240,7 @@ function TooltipContent({
245
240
  ...props,
246
241
  children: [
247
242
  children,
248
- /* @__PURE__ */ jsx6(TooltipPrimitive.Arrow, {
243
+ /* @__PURE__ */ jsx3(TooltipPrimitive.Arrow, {
249
244
  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"
250
245
  })
251
246
  ]
@@ -257,7 +252,7 @@ function TooltipContent({
257
252
  // ../../src/components/ui/sidebar.tsx
258
253
  import { PanelLeftIcon } from "lucide-react";
259
254
  import { Schema } from "effect";
260
- import { jsx as jsx7, jsxs as jsxs3 } from "react/jsx-runtime";
255
+ import { jsx as jsx4, jsxs as jsxs3 } from "react/jsx-runtime";
261
256
  var SIDEBAR_COOKIE_NAME = "sidebar_state";
262
257
  var SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;
263
258
  var SIDEBAR_WIDTH = "16rem";
@@ -294,7 +289,7 @@ function SidebarProvider({
294
289
  document.cookie = `${SIDEBAR_COOKIE_NAME}=${openState}; path=/; max-age=${SIDEBAR_COOKIE_MAX_AGE}`;
295
290
  }, [setOpenProp]);
296
291
  const toggleSidebar = React2.useCallback(() => {
297
- return isMobile ? setOpenMobile((open2) => !open2) : setOpen(!open);
292
+ return isMobile ? setOpenMobile((open) => !open) : setOpen(!open);
298
293
  }, [isMobile, open, setOpen, setOpenMobile]);
299
294
  React2.useEffect(() => {
300
295
  const handleKeyDown = (event) => {
@@ -321,9 +316,9 @@ function SidebarProvider({
321
316
  "--sidebar-width-icon": SIDEBAR_WIDTH_ICON,
322
317
  ...style
323
318
  };
324
- return /* @__PURE__ */ jsx7(SidebarContext.Provider, {
319
+ return /* @__PURE__ */ jsx4(SidebarContext.Provider, {
325
320
  value: contextValue,
326
- children: /* @__PURE__ */ jsx7("div", {
321
+ children: /* @__PURE__ */ jsx4("div", {
327
322
  "data-slot": "sidebar-wrapper",
328
323
  style: wrapperStyle,
329
324
  className: cn("group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar", className),
@@ -343,7 +338,7 @@ function Sidebar({
343
338
  }) {
344
339
  const { isMobile, state, openMobile, setOpenMobile } = useSidebar();
345
340
  if (collapsible === "none") {
346
- return /* @__PURE__ */ jsx7("div", {
341
+ return /* @__PURE__ */ jsx4("div", {
347
342
  "data-slot": "sidebar",
348
343
  className: cn("flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground", className),
349
344
  ...props,
@@ -354,7 +349,7 @@ function Sidebar({
354
349
  const mobileStyle = {
355
350
  "--sidebar-width": SIDEBAR_WIDTH_MOBILE
356
351
  };
357
- return /* @__PURE__ */ jsx7(Sheet, {
352
+ return /* @__PURE__ */ jsx4(Sheet, {
358
353
  open: openMobile,
359
354
  onOpenChange: setOpenMobile,
360
355
  ...props,
@@ -370,15 +365,15 @@ function Sidebar({
370
365
  /* @__PURE__ */ jsxs3(SheetHeader, {
371
366
  className: "sr-only",
372
367
  children: [
373
- /* @__PURE__ */ jsx7(SheetTitle, {
368
+ /* @__PURE__ */ jsx4(SheetTitle, {
374
369
  children: "Sidebar"
375
370
  }),
376
- /* @__PURE__ */ jsx7(SheetDescription, {
371
+ /* @__PURE__ */ jsx4(SheetDescription, {
377
372
  children: "Displays the mobile sidebar."
378
373
  })
379
374
  ]
380
375
  }),
381
- /* @__PURE__ */ jsx7("div", {
376
+ /* @__PURE__ */ jsx4("div", {
382
377
  className: "flex h-full w-full flex-col",
383
378
  children
384
379
  })
@@ -394,16 +389,16 @@ function Sidebar({
394
389
  "data-side": side,
395
390
  "data-slot": "sidebar",
396
391
  children: [
397
- /* @__PURE__ */ jsx7("div", {
392
+ /* @__PURE__ */ jsx4("div", {
398
393
  "data-slot": "sidebar-gap",
399
394
  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)")
400
395
  }),
401
- /* @__PURE__ */ jsx7("div", {
396
+ /* @__PURE__ */ jsx4("div", {
402
397
  "data-slot": "sidebar-container",
403
398
  "data-side": side,
404
399
  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),
405
400
  ...props,
406
- children: /* @__PURE__ */ jsx7("div", {
401
+ children: /* @__PURE__ */ jsx4("div", {
407
402
  "data-sidebar": "sidebar",
408
403
  "data-slot": "sidebar-inner",
409
404
  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",
@@ -431,8 +426,8 @@ function SidebarTrigger({
431
426
  },
432
427
  ...props,
433
428
  children: [
434
- /* @__PURE__ */ jsx7(PanelLeftIcon, {}),
435
- /* @__PURE__ */ jsx7("span", {
429
+ /* @__PURE__ */ jsx4(PanelLeftIcon, {}),
430
+ /* @__PURE__ */ jsx4("span", {
436
431
  className: "sr-only",
437
432
  children: "Toggle Sidebar"
438
433
  })
@@ -441,7 +436,7 @@ function SidebarTrigger({
441
436
  }
442
437
  function SidebarRail({ className, ...props }) {
443
438
  const { toggleSidebar } = useSidebar();
444
- return /* @__PURE__ */ jsx7("button", {
439
+ return /* @__PURE__ */ jsx4("button", {
445
440
  "data-sidebar": "rail",
446
441
  "data-slot": "sidebar-rail",
447
442
  "aria-label": "Toggle Sidebar",
@@ -453,14 +448,14 @@ function SidebarRail({ className, ...props }) {
453
448
  });
454
449
  }
455
450
  function SidebarInset({ className, ...props }) {
456
- return /* @__PURE__ */ jsx7("main", {
451
+ return /* @__PURE__ */ jsx4("main", {
457
452
  "data-slot": "sidebar-inset",
458
453
  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),
459
454
  ...props
460
455
  });
461
456
  }
462
457
  function SidebarHeader({ className, ...props }) {
463
- return /* @__PURE__ */ jsx7("div", {
458
+ return /* @__PURE__ */ jsx4("div", {
464
459
  "data-slot": "sidebar-header",
465
460
  "data-sidebar": "header",
466
461
  className: cn("flex flex-col gap-2 p-2", className),
@@ -468,7 +463,7 @@ function SidebarHeader({ className, ...props }) {
468
463
  });
469
464
  }
470
465
  function SidebarFooter({ className, ...props }) {
471
- return /* @__PURE__ */ jsx7("div", {
466
+ return /* @__PURE__ */ jsx4("div", {
472
467
  "data-slot": "sidebar-footer",
473
468
  "data-sidebar": "footer",
474
469
  className: cn("flex flex-col gap-2 p-2", className),
@@ -476,7 +471,7 @@ function SidebarFooter({ className, ...props }) {
476
471
  });
477
472
  }
478
473
  function SidebarContent({ className, ...props }) {
479
- return /* @__PURE__ */ jsx7("div", {
474
+ return /* @__PURE__ */ jsx4("div", {
480
475
  "data-slot": "sidebar-content",
481
476
  "data-sidebar": "content",
482
477
  className: cn("no-scrollbar flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden", className),
@@ -484,7 +479,7 @@ function SidebarContent({ className, ...props }) {
484
479
  });
485
480
  }
486
481
  function SidebarGroup({ className, ...props }) {
487
- return /* @__PURE__ */ jsx7("div", {
482
+ return /* @__PURE__ */ jsx4("div", {
488
483
  "data-slot": "sidebar-group",
489
484
  "data-sidebar": "group",
490
485
  className: cn("relative flex w-full min-w-0 flex-col p-2", className),
@@ -512,7 +507,7 @@ function SidebarGroupContent({
512
507
  className,
513
508
  ...props
514
509
  }) {
515
- return /* @__PURE__ */ jsx7("div", {
510
+ return /* @__PURE__ */ jsx4("div", {
516
511
  "data-slot": "sidebar-group-content",
517
512
  "data-sidebar": "group-content",
518
513
  className: cn("w-full text-sm", className),
@@ -520,7 +515,7 @@ function SidebarGroupContent({
520
515
  });
521
516
  }
522
517
  function SidebarMenu({ className, ...props }) {
523
- return /* @__PURE__ */ jsx7("ul", {
518
+ return /* @__PURE__ */ jsx4("ul", {
524
519
  "data-slot": "sidebar-menu",
525
520
  "data-sidebar": "menu",
526
521
  className: cn("flex w-full min-w-0 flex-col gap-1", className),
@@ -528,7 +523,7 @@ function SidebarMenu({ className, ...props }) {
528
523
  });
529
524
  }
530
525
  function SidebarMenuItem({ className, ...props }) {
531
- return /* @__PURE__ */ jsx7("li", {
526
+ return /* @__PURE__ */ jsx4("li", {
532
527
  "data-slot": "sidebar-menu-item",
533
528
  "data-sidebar": "menu-item",
534
529
  className: cn("group/menu-item relative", className),
@@ -567,7 +562,7 @@ function SidebarMenuButton({
567
562
  props: mergeProps2({
568
563
  className: cn(sidebarMenuButtonVariants({ variant, size }), className)
569
564
  }, props),
570
- render: !tooltip ? render : /* @__PURE__ */ jsx7(TooltipTrigger, {
565
+ render: !tooltip ? render : /* @__PURE__ */ jsx4(TooltipTrigger, {
571
566
  render
572
567
  }),
573
568
  state: {
@@ -584,7 +579,7 @@ function SidebarMenuButton({
584
579
  return /* @__PURE__ */ jsxs3(Tooltip, {
585
580
  children: [
586
581
  comp,
587
- /* @__PURE__ */ jsx7(TooltipContent, {
582
+ /* @__PURE__ */ jsx4(TooltipContent, {
588
583
  side: "right",
589
584
  align: "center",
590
585
  hidden: state !== "collapsed" || isMobile,
@@ -595,7 +590,7 @@ function SidebarMenuButton({
595
590
  }
596
591
 
597
592
  // ../../src/components/ui/sidebar-layout.tsx
598
- import { jsx as jsx8, jsxs as jsxs4 } from "react/jsx-runtime";
593
+ import { jsx as jsx5, jsxs as jsxs4 } from "react/jsx-runtime";
599
594
  var SIDEBAR_COOKIE_NAME2 = "sidebar_state";
600
595
  var SidebarOpenCookie = Schema2.Literals(["true", "false"]).annotate({
601
596
  identifier: "SidebarOpenCookie"
@@ -616,24 +611,24 @@ function AppSidebar({ collapsible, footer, groups, header }) {
616
611
  return /* @__PURE__ */ jsxs4(Sidebar, {
617
612
  collapsible,
618
613
  children: [
619
- header && /* @__PURE__ */ jsx8(SidebarHeader, {
614
+ header && /* @__PURE__ */ jsx5(SidebarHeader, {
620
615
  children: header
621
616
  }),
622
- /* @__PURE__ */ jsx8(SidebarContent, {
617
+ /* @__PURE__ */ jsx5(SidebarContent, {
623
618
  className: "group-data-[collapsible=icon]:overflow-x-hidden group-data-[collapsible=icon]:overflow-y-auto",
624
619
  children: groups.map((group) => /* @__PURE__ */ jsxs4(SidebarGroup, {
625
620
  children: [
626
- /* @__PURE__ */ jsx8(SidebarGroupLabel, {
621
+ /* @__PURE__ */ jsx5(SidebarGroupLabel, {
627
622
  children: group.label()
628
623
  }),
629
- /* @__PURE__ */ jsx8(SidebarGroupContent, {
630
- children: /* @__PURE__ */ jsx8(SidebarMenu, {
624
+ /* @__PURE__ */ jsx5(SidebarGroupContent, {
625
+ children: /* @__PURE__ */ jsx5(SidebarMenu, {
631
626
  children: group.items.map((item) => {
632
- const render = item.external ? /* @__PURE__ */ jsx8("a", {
627
+ const render = item.external ? /* @__PURE__ */ jsx5("a", {
633
628
  href: item.href,
634
629
  target: "_blank",
635
630
  rel: "noreferrer"
636
- }) : /* @__PURE__ */ jsx8(Link, {
631
+ }) : /* @__PURE__ */ jsx5(Link, {
637
632
  to: item.href,
638
633
  activeOptions: {
639
634
  exact: item.exact ?? false,
@@ -641,17 +636,17 @@ function AppSidebar({ collapsible, footer, groups, header }) {
641
636
  },
642
637
  activeProps: { "data-active": "" }
643
638
  });
644
- return /* @__PURE__ */ jsx8(SidebarMenuItem, {
639
+ return /* @__PURE__ */ jsx5(SidebarMenuItem, {
645
640
  children: /* @__PURE__ */ jsxs4(SidebarMenuButton, {
646
641
  onClick: closeMobileSidebar,
647
642
  render,
648
643
  tooltip: item.label(),
649
644
  children: [
650
- item.icon ? /* @__PURE__ */ jsx8(item.icon, {}) : null,
651
- /* @__PURE__ */ jsx8("span", {
645
+ item.icon ? /* @__PURE__ */ jsx5(item.icon, {}) : null,
646
+ /* @__PURE__ */ jsx5("span", {
652
647
  children: item.label()
653
648
  }),
654
- item.badge ? /* @__PURE__ */ jsx8(Badge, {
649
+ item.badge ? /* @__PURE__ */ jsx5(Badge, {
655
650
  className: "ml-auto",
656
651
  variant: "secondary",
657
652
  children: item.badge()
@@ -665,10 +660,10 @@ function AppSidebar({ collapsible, footer, groups, header }) {
665
660
  ]
666
661
  }, group.label()))
667
662
  }),
668
- footer ? /* @__PURE__ */ jsx8(SidebarFooter, {
663
+ footer ? /* @__PURE__ */ jsx5(SidebarFooter, {
669
664
  children: footer
670
665
  }) : null,
671
- /* @__PURE__ */ jsx8(SidebarRail, {})
666
+ /* @__PURE__ */ jsx5(SidebarRail, {})
672
667
  ]
673
668
  });
674
669
  }
@@ -684,7 +679,7 @@ function SidebarPageHeader({
684
679
  /* @__PURE__ */ jsxs4("div", {
685
680
  className: "flex flex-col gap-2",
686
681
  children: [
687
- badge ? /* @__PURE__ */ jsx8(Badge, {
682
+ badge ? /* @__PURE__ */ jsx5(Badge, {
688
683
  className: "w-fit",
689
684
  variant: badge.variant ?? "secondary",
690
685
  children: badge.label
@@ -692,11 +687,11 @@ function SidebarPageHeader({
692
687
  /* @__PURE__ */ jsxs4("div", {
693
688
  className: "flex flex-col gap-1",
694
689
  children: [
695
- /* @__PURE__ */ jsx8("h1", {
690
+ /* @__PURE__ */ jsx5("h1", {
696
691
  className: "text-3xl font-bold tracking-tight",
697
692
  children: title
698
693
  }),
699
- description ? /* @__PURE__ */ jsx8("p", {
694
+ description ? /* @__PURE__ */ jsx5("p", {
700
695
  className: "text-muted-foreground max-w-2xl text-sm",
701
696
  children: description
702
697
  }) : null
@@ -704,7 +699,7 @@ function SidebarPageHeader({
704
699
  })
705
700
  ]
706
701
  }),
707
- actions ? /* @__PURE__ */ jsx8("div", {
702
+ actions ? /* @__PURE__ */ jsx5("div", {
708
703
  className: "flex gap-2",
709
704
  children: actions
710
705
  }) : null
@@ -728,7 +723,7 @@ function SidebarLayout({
728
723
  onOpenChange: setSidebarOpen,
729
724
  className: cn(fullPage && "xl:h-svh xl:min-h-0 xl:overflow-hidden"),
730
725
  children: [
731
- /* @__PURE__ */ jsx8(AppSidebar, {
726
+ /* @__PURE__ */ jsx5(AppSidebar, {
732
727
  collapsible: sidebarCollapsible,
733
728
  footer: sidebarFooter,
734
729
  groups,
@@ -740,16 +735,16 @@ function SidebarLayout({
740
735
  /* @__PURE__ */ jsxs4("header", {
741
736
  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",
742
737
  children: [
743
- /* @__PURE__ */ jsx8(SidebarTrigger, {}),
744
- /* @__PURE__ */ jsx8("div", {
738
+ /* @__PURE__ */ jsx5(SidebarTrigger, {}),
739
+ /* @__PURE__ */ jsx5("div", {
745
740
  className: "ml-auto flex items-center gap-2",
746
741
  children: headerActions
747
742
  })
748
743
  ]
749
744
  }),
750
- /* @__PURE__ */ jsx8("div", {
745
+ /* @__PURE__ */ jsx5("div", {
751
746
  className: cn("isolate", contentClassName ?? "flex flex-col gap-6 px-5 py-6 md:px-8"),
752
- children: children ?? /* @__PURE__ */ jsx8(Outlet, {})
747
+ children: children ?? /* @__PURE__ */ jsx5(Outlet, {})
753
748
  })
754
749
  ]
755
750
  })
@@ -757,7 +752,7 @@ function SidebarLayout({
757
752
  });
758
753
  }
759
754
  export {
760
- useSidebarLayout,
755
+ SidebarLayout,
761
756
  SidebarPageHeader,
762
- SidebarLayout
757
+ useSidebarLayout
763
758
  };
@@ -243,7 +243,7 @@ var ThemeProvider = ({
243
243
  const value = useMemo(() => ({
244
244
  systemTheme,
245
245
  theme,
246
- setTheme: (theme2) => updateTheme({ theme: theme2, systemTheme })
246
+ setTheme: (theme) => updateTheme({ theme, systemTheme })
247
247
  }), [systemTheme, theme, updateTheme]);
248
248
  return /* @__PURE__ */ jsxs2(Fragment, {
249
249
  children: [
@@ -265,13 +265,13 @@ var useTheme = () => {
265
265
  };
266
266
  var ThemeSwitcher = ({
267
267
  locale: localeOverride,
268
- messages: messages2,
268
+ messages,
269
269
  options = themes,
270
270
  value,
271
271
  onChange
272
272
  }) => {
273
273
  const locale = useKrakstackLocale(localeOverride);
274
- const labels = themeMessages(locale, messages2);
274
+ const labels = themeMessages(locale, messages);
275
275
  return /* @__PURE__ */ jsxs2(DropdownMenu, {
276
276
  children: [
277
277
  /* @__PURE__ */ jsx3(DropdownMenuTrigger, {
@@ -340,8 +340,8 @@ var ThemeOptionIcon = ({ theme }) => {
340
340
  });
341
341
  };
342
342
  export {
343
- useTheme,
344
- themes,
343
+ ThemeProvider,
345
344
  ThemeSwitcher,
346
- ThemeProvider
345
+ themes,
346
+ useTheme
347
347
  };