@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
@@ -72,13 +72,10 @@ function Input({ className, type, ...props }) {
72
72
  });
73
73
  }
74
74
 
75
- // ../../src/components/ui/textarea.tsx
76
- import { jsx as jsx3 } from "react/jsx-runtime";
77
-
78
75
  // ../../src/components/ui/input-group.tsx
79
- import { jsx as jsx4 } from "react/jsx-runtime";
76
+ import { jsx as jsx3 } from "react/jsx-runtime";
80
77
  function InputGroup({ className, ...props }) {
81
- return /* @__PURE__ */ jsx4("div", {
78
+ return /* @__PURE__ */ jsx3("div", {
82
79
  "data-slot": "input-group",
83
80
  role: "group",
84
81
  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),
@@ -111,7 +108,7 @@ function InputGroupInput({
111
108
  className,
112
109
  ...props
113
110
  }) {
114
- return /* @__PURE__ */ jsx4(Input, {
111
+ return /* @__PURE__ */ jsx3(Input, {
115
112
  "data-slot": "input-group-control",
116
113
  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),
117
114
  ...props
@@ -120,7 +117,7 @@ function InputGroupInput({
120
117
 
121
118
  // ../../src/components/ui/virtualized-combobox.tsx
122
119
  import { useKrakstackLocale } from "@krak-stack/registry/krakstack-provider";
123
- import { jsx as jsx5, jsxs, Fragment } from "react/jsx-runtime";
120
+ import { jsx as jsx4, jsxs, Fragment } from "react/jsx-runtime";
124
121
  "use client";
125
122
  var messages = {
126
123
  en: {
@@ -161,7 +158,7 @@ var VirtualizedComboboxList = ({
161
158
  }));
162
159
  const selectedEntries = itemEntries.filter(({ item }) => selectedValues.has(item.value));
163
160
  const availableEntries = itemEntries.filter(({ item }) => !selectedValues.has(item.value));
164
- const entries = groupSelections ? [
161
+ const entries = filteredItems.length === 0 ? [] : groupSelections ? [
165
162
  ...selectedEntries.length > 0 ? [
166
163
  {
167
164
  kind: "group",
@@ -199,11 +196,11 @@ var VirtualizedComboboxList = ({
199
196
  }, [virtualizer]);
200
197
  return /* @__PURE__ */ jsxs(Fragment, {
201
198
  children: [
202
- filteredItems.length === 0 && /* @__PURE__ */ jsx5("div", {
199
+ filteredItems.length === 0 && /* @__PURE__ */ jsx4("div", {
203
200
  className: "text-muted-foreground flex min-h-0 flex-1 flex-col items-center justify-center overflow-auto py-6 text-center text-sm",
204
201
  children: emptyLabel
205
202
  }),
206
- /* @__PURE__ */ jsx5(ComboboxPrimitive.List, {
203
+ /* @__PURE__ */ jsx4(ComboboxPrimitive.List, {
207
204
  className: "min-h-0 flex-1 scroll-py-1 overflow-auto overscroll-contain p-1",
208
205
  hidden: filteredItems.length === 0,
209
206
  ref: handleScrollElementRef,
@@ -211,7 +208,7 @@ var VirtualizedComboboxList = ({
211
208
  height: Math.min(virtualizer.getTotalSize() + 8, 288),
212
209
  maxHeight: "var(--available-height)"
213
210
  },
214
- children: /* @__PURE__ */ jsx5("div", {
211
+ children: /* @__PURE__ */ jsx4("div", {
215
212
  className: "relative w-full",
216
213
  role: "presentation",
217
214
  style: { height: virtualizer.getTotalSize() },
@@ -224,9 +221,9 @@ var VirtualizedComboboxList = ({
224
221
  transform: `translateY(${virtualItem.start}px)`
225
222
  };
226
223
  if (entry.kind === "group") {
227
- return /* @__PURE__ */ jsx5(ComboboxPrimitive.Group, {
224
+ return /* @__PURE__ */ jsx4(ComboboxPrimitive.Group, {
228
225
  className: "contents",
229
- children: /* @__PURE__ */ jsx5(ComboboxPrimitive.GroupLabel, {
226
+ children: /* @__PURE__ */ jsx4(ComboboxPrimitive.GroupLabel, {
230
227
  className: "text-muted-foreground absolute top-0 left-0 w-full px-2 pt-3 pb-1 text-xs",
231
228
  "data-index": virtualItem.index,
232
229
  ref: virtualizer.measureElement,
@@ -245,13 +242,13 @@ var VirtualizedComboboxList = ({
245
242
  style,
246
243
  value: entry.item,
247
244
  children: [
248
- renderItem?.(entry.item) ?? /* @__PURE__ */ jsx5("span", {
245
+ renderItem?.(entry.item) ?? /* @__PURE__ */ jsx4("span", {
249
246
  className: "min-w-0 truncate",
250
247
  children: entry.item.label
251
248
  }),
252
- /* @__PURE__ */ jsx5(ComboboxPrimitive.ItemIndicator, {
249
+ /* @__PURE__ */ jsx4(ComboboxPrimitive.ItemIndicator, {
253
250
  className: "absolute right-2 flex size-4 items-center justify-center",
254
- children: /* @__PURE__ */ jsx5(Check, {})
251
+ children: /* @__PURE__ */ jsx4(Check, {})
255
252
  })
256
253
  ]
257
254
  }, entry.item.value);
@@ -273,26 +270,26 @@ var VirtualizedComboboxContent = ({
273
270
  virtualizerRef
274
271
  }) => {
275
272
  const labels = virtualizedComboboxMessages(locale, messageOverrides);
276
- return /* @__PURE__ */ jsx5(ComboboxPrimitive.Portal, {
277
- children: /* @__PURE__ */ jsx5(ComboboxPrimitive.Positioner, {
273
+ return /* @__PURE__ */ jsx4(ComboboxPrimitive.Portal, {
274
+ children: /* @__PURE__ */ jsx4(ComboboxPrimitive.Positioner, {
278
275
  align: "start",
279
276
  className: "isolate z-50",
280
277
  side: "bottom",
281
278
  sideOffset: 6,
282
279
  children: /* @__PURE__ */ jsxs(ComboboxPrimitive.Popup, {
283
- className: cn("relative flex max-h-(--available-height) w-(--anchor-width) max-w-(--available-width) min-w-0 origin-(--transform-origin) flex-col 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),
280
+ className: cn("bg-popover text-popover-foreground ring-foreground/10 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 relative flex max-h-(--available-height) w-(--anchor-width) max-w-(--available-width) min-w-0 origin-(--transform-origin) flex-col overflow-hidden rounded-md shadow-md ring-1 duration-100", contentClassName),
284
281
  children: [
285
- /* @__PURE__ */ jsx5("div", {
282
+ /* @__PURE__ */ jsx4("div", {
286
283
  className: "min-w-0 shrink-0 p-1 pb-0",
287
- children: /* @__PURE__ */ jsx5(InputGroup, {
284
+ children: /* @__PURE__ */ jsx4(InputGroup, {
288
285
  className: "border-input/30 bg-input/30 h-8 w-full min-w-0 shadow-none",
289
- children: /* @__PURE__ */ jsx5(ComboboxPrimitive.Input, {
286
+ children: /* @__PURE__ */ jsx4(ComboboxPrimitive.Input, {
290
287
  placeholder: labels.search,
291
- render: /* @__PURE__ */ jsx5(InputGroupInput, {})
288
+ render: /* @__PURE__ */ jsx4(InputGroupInput, {})
292
289
  })
293
290
  })
294
291
  }),
295
- /* @__PURE__ */ jsx5(VirtualizedComboboxList, {
292
+ /* @__PURE__ */ jsx4(VirtualizedComboboxList, {
296
293
  emptyLabel,
297
294
  groupSelections,
298
295
  itemIndexRef,
@@ -316,20 +313,20 @@ var defaultTrigger = (ariaLabel, ariaInvalid, disabled, label, triggerId) => /*
316
313
  type: "button",
317
314
  variant: "outline",
318
315
  children: [
319
- /* @__PURE__ */ jsx5("span", {
316
+ /* @__PURE__ */ jsx4("span", {
320
317
  className: "min-w-0 flex-1 truncate pr-7 text-left",
321
318
  children: label
322
319
  }),
323
- /* @__PURE__ */ jsx5(ChevronsUpDown, {
320
+ /* @__PURE__ */ jsx4(ChevronsUpDown, {
324
321
  className: "text-muted-foreground shrink-0 opacity-70"
325
322
  })
326
323
  ]
327
324
  });
328
- var defaultClear = (label) => /* @__PURE__ */ jsx5(ComboboxPrimitive.Clear, {
325
+ var defaultClear = (label) => /* @__PURE__ */ jsx4(ComboboxPrimitive.Clear, {
329
326
  "aria-label": label,
330
327
  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",
331
328
  type: "button",
332
- children: /* @__PURE__ */ jsx5(X, {
329
+ children: /* @__PURE__ */ jsx4(X, {
333
330
  className: "size-3.5"
334
331
  })
335
332
  });
@@ -368,13 +365,13 @@ var VirtualizedComboboxSingle = (props) => {
368
365
  /* @__PURE__ */ jsxs("div", {
369
366
  className: "relative",
370
367
  children: [
371
- /* @__PURE__ */ jsx5(ComboboxPrimitive.Trigger, {
368
+ /* @__PURE__ */ jsx4(ComboboxPrimitive.Trigger, {
372
369
  render: props.trigger ?? defaultTrigger(props.ariaLabel, props.ariaInvalid, props.disabled, selectedLabel(props.value, props.placeholder), props.triggerId)
373
370
  }),
374
371
  props.trigger ? null : defaultClear(labels.clear)
375
372
  ]
376
373
  }),
377
- /* @__PURE__ */ jsx5(VirtualizedComboboxContent, {
374
+ /* @__PURE__ */ jsx4(VirtualizedComboboxContent, {
378
375
  ...props,
379
376
  groupSelections: false,
380
377
  itemIndexRef,
@@ -410,13 +407,13 @@ var VirtualizedComboboxMultiple = (props) => {
410
407
  /* @__PURE__ */ jsxs("div", {
411
408
  className: "relative",
412
409
  children: [
413
- /* @__PURE__ */ jsx5(ComboboxPrimitive.Trigger, {
410
+ /* @__PURE__ */ jsx4(ComboboxPrimitive.Trigger, {
414
411
  render: props.trigger ?? defaultTrigger(props.ariaLabel, props.ariaInvalid, props.disabled, selectedLabel(props.value, props.placeholder), props.triggerId)
415
412
  }),
416
413
  props.trigger ? null : defaultClear(labels.clear)
417
414
  ]
418
415
  }),
419
- /* @__PURE__ */ jsx5(VirtualizedComboboxContent, {
416
+ /* @__PURE__ */ jsx4(VirtualizedComboboxContent, {
420
417
  ...props,
421
418
  groupSelections: true,
422
419
  itemIndexRef,
@@ -428,15 +425,15 @@ var VirtualizedComboboxMultiple = (props) => {
428
425
  };
429
426
  function VirtualizedCombobox(props) {
430
427
  const locale = useKrakstackLocale(props.locale);
431
- return props.multiple ? /* @__PURE__ */ jsx5(VirtualizedComboboxMultiple, {
428
+ return props.multiple ? /* @__PURE__ */ jsx4(VirtualizedComboboxMultiple, {
432
429
  ...props,
433
430
  locale
434
- }) : /* @__PURE__ */ jsx5(VirtualizedComboboxSingle, {
431
+ }) : /* @__PURE__ */ jsx4(VirtualizedComboboxSingle, {
435
432
  ...props,
436
433
  locale
437
434
  });
438
435
  }
439
436
  export {
440
- virtualizedComboboxMessages,
441
- VirtualizedCombobox
437
+ VirtualizedCombobox,
438
+ virtualizedComboboxMessages
442
439
  };