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