@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
@@ -1,6 +1,12 @@
1
1
  // ../../src/components/ui/google-map.tsx
2
2
  import { LocateFixed, Minus, Plus } from "lucide-react";
3
- import { useEffect, useEffectEvent, useRef, useState } from "react";
3
+ import {
4
+ useEffect,
5
+ useEffectEvent,
6
+ useRef,
7
+ useState,
8
+ useSyncExternalStore
9
+ } from "react";
4
10
  import { Schema } from "effect";
5
11
 
6
12
  // ../../src/lib/utils.ts
@@ -98,6 +104,28 @@ var mapOptions = (center, zoom, interactive, minZoom, maxZoom) => ({
98
104
  streetViewControl: false,
99
105
  zoomControl: false
100
106
  });
107
+ var createMapState = (loadState, currentZoom) => {
108
+ let snapshot = { loadState, currentZoom };
109
+ const listeners = new Set;
110
+ const update = (next) => {
111
+ if (next.loadState === snapshot.loadState && next.currentZoom === snapshot.currentZoom)
112
+ return;
113
+ snapshot = next;
114
+ for (const listener of listeners)
115
+ listener();
116
+ };
117
+ return {
118
+ getSnapshot: () => snapshot,
119
+ subscribe: (listener) => {
120
+ listeners.add(listener);
121
+ return () => {
122
+ listeners.delete(listener);
123
+ };
124
+ },
125
+ setLoadState: (loadState2) => update({ ...snapshot, loadState: loadState2 }),
126
+ setCurrentZoom: (currentZoom2) => update({ ...snapshot, currentZoom: currentZoom2 })
127
+ };
128
+ };
101
129
  function GoogleMap({
102
130
  apiKey,
103
131
  center,
@@ -125,8 +153,9 @@ function GoogleMap({
125
153
  const normalizedMinZoom = Math.min(minZoom, maxZoom);
126
154
  const normalizedMaxZoom = Math.max(minZoom, maxZoom);
127
155
  const initialZoom = clampZoom(zoom, normalizedMinZoom, normalizedMaxZoom);
128
- const [loadState, setLoadState] = useState(normalizedApiKey ? "loading" : "missing-key");
129
- const [currentZoom, setCurrentZoom] = useState(initialZoom);
156
+ const [mapState] = useState(() => createMapState(normalizedApiKey ? "loading" : "missing-key", initialZoom));
157
+ const { loadState, currentZoom } = useSyncExternalStore(mapState.subscribe, mapState.getSnapshot, mapState.getSnapshot);
158
+ const { setLoadState, setCurrentZoom } = mapState;
130
159
  const labels = googleMapMessages(locale, messageOverrides);
131
160
  const markerOptions = Schema.is(Schema.Struct({ icon: Schema.optional(Schema.String) }))(marker) ? marker : undefined;
132
161
  const markerEnabled = marker === true || markerOptions !== undefined;
@@ -196,7 +225,7 @@ function GoogleMap({
196
225
  apiRef.current = null;
197
226
  element.replaceChildren();
198
227
  };
199
- }, [normalizedApiKey]);
228
+ }, [normalizedApiKey, setLoadState]);
200
229
  useEffect(() => {
201
230
  const map = mapRef.current;
202
231
  if (loadState !== "ready" || !map)
@@ -219,7 +248,9 @@ function GoogleMap({
219
248
  fitRadius,
220
249
  normalizedMinZoom,
221
250
  normalizedMaxZoom,
222
- loadState
251
+ loadState,
252
+ setLoadState,
253
+ setCurrentZoom
223
254
  ]);
224
255
  useEffect(() => {
225
256
  const api = apiRef.current;
@@ -284,7 +315,8 @@ function GoogleMap({
284
315
  radiusMeters,
285
316
  radiusStrokeColor,
286
317
  radiusStrokeOpacity,
287
- radiusStrokeWeight
318
+ radiusStrokeWeight,
319
+ setLoadState
288
320
  ]);
289
321
  useEffect(() => {
290
322
  const element = mapElementRef.current;
@@ -86,10 +86,13 @@ function Input({ className, type, ...props }) {
86
86
  });
87
87
  }
88
88
 
89
- // ../../src/components/ui/input-group.tsx
89
+ // ../../src/components/ui/textarea.tsx
90
90
  import { jsx as jsx3 } from "react/jsx-runtime";
91
+
92
+ // ../../src/components/ui/input-group.tsx
93
+ import { jsx as jsx4 } from "react/jsx-runtime";
91
94
  function InputGroup({ className, ...props }) {
92
- return /* @__PURE__ */ jsx3("div", {
95
+ return /* @__PURE__ */ jsx4("div", {
93
96
  "data-slot": "input-group",
94
97
  role: "group",
95
98
  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),
@@ -122,7 +125,7 @@ function InputGroupInput({
122
125
  className,
123
126
  ...props
124
127
  }) {
125
- return /* @__PURE__ */ jsx3(Input, {
128
+ return /* @__PURE__ */ jsx4(Input, {
126
129
  "data-slot": "input-group-control",
127
130
  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),
128
131
  ...props
@@ -131,7 +134,7 @@ function InputGroupInput({
131
134
 
132
135
  // ../../src/components/ui/virtualized-combobox.tsx
133
136
  import { useKrakstackLocale } from "@krak-stack/registry/krakstack-provider";
134
- import { jsx as jsx4, jsxs, Fragment } from "react/jsx-runtime";
137
+ import { jsx as jsx5, jsxs, Fragment } from "react/jsx-runtime";
135
138
  "use client";
136
139
  var messages = {
137
140
  en: {
@@ -210,11 +213,11 @@ var VirtualizedComboboxList = ({
210
213
  }, [virtualizer]);
211
214
  return /* @__PURE__ */ jsxs(Fragment, {
212
215
  children: [
213
- filteredItems.length === 0 && /* @__PURE__ */ jsx4("div", {
216
+ filteredItems.length === 0 && /* @__PURE__ */ jsx5("div", {
214
217
  className: "text-muted-foreground flex min-h-0 flex-1 flex-col items-center justify-center overflow-auto py-6 text-center text-sm",
215
218
  children: emptyLabel
216
219
  }),
217
- /* @__PURE__ */ jsx4(ComboboxPrimitive.List, {
220
+ /* @__PURE__ */ jsx5(ComboboxPrimitive.List, {
218
221
  className: "min-h-0 flex-1 scroll-py-1 overflow-auto overscroll-contain p-1",
219
222
  hidden: filteredItems.length === 0,
220
223
  ref: handleScrollElementRef,
@@ -222,7 +225,7 @@ var VirtualizedComboboxList = ({
222
225
  height: Math.min(virtualizer.getTotalSize() + 8, 288),
223
226
  maxHeight: "var(--available-height)"
224
227
  },
225
- children: /* @__PURE__ */ jsx4("div", {
228
+ children: /* @__PURE__ */ jsx5("div", {
226
229
  className: "relative w-full",
227
230
  role: "presentation",
228
231
  style: { height: virtualizer.getTotalSize() },
@@ -235,9 +238,9 @@ var VirtualizedComboboxList = ({
235
238
  transform: `translateY(${virtualItem.start}px)`
236
239
  };
237
240
  if (entry.kind === "group") {
238
- return /* @__PURE__ */ jsx4(ComboboxPrimitive.Group, {
241
+ return /* @__PURE__ */ jsx5(ComboboxPrimitive.Group, {
239
242
  className: "contents",
240
- children: /* @__PURE__ */ jsx4(ComboboxPrimitive.GroupLabel, {
243
+ children: /* @__PURE__ */ jsx5(ComboboxPrimitive.GroupLabel, {
241
244
  className: "text-muted-foreground absolute top-0 left-0 w-full px-2 pt-3 pb-1 text-xs",
242
245
  "data-index": virtualItem.index,
243
246
  ref: virtualizer.measureElement,
@@ -256,13 +259,13 @@ var VirtualizedComboboxList = ({
256
259
  style,
257
260
  value: entry.item,
258
261
  children: [
259
- renderItem?.(entry.item) ?? /* @__PURE__ */ jsx4("span", {
262
+ renderItem?.(entry.item) ?? /* @__PURE__ */ jsx5("span", {
260
263
  className: "min-w-0 truncate",
261
264
  children: entry.item.label
262
265
  }),
263
- /* @__PURE__ */ jsx4(ComboboxPrimitive.ItemIndicator, {
266
+ /* @__PURE__ */ jsx5(ComboboxPrimitive.ItemIndicator, {
264
267
  className: "absolute right-2 flex size-4 items-center justify-center",
265
- children: /* @__PURE__ */ jsx4(Check, {})
268
+ children: /* @__PURE__ */ jsx5(Check, {})
266
269
  })
267
270
  ]
268
271
  }, entry.item.value);
@@ -284,8 +287,8 @@ var VirtualizedComboboxContent = ({
284
287
  virtualizerRef
285
288
  }) => {
286
289
  const labels = virtualizedComboboxMessages(locale, messageOverrides);
287
- return /* @__PURE__ */ jsx4(ComboboxPrimitive.Portal, {
288
- children: /* @__PURE__ */ jsx4(ComboboxPrimitive.Positioner, {
290
+ return /* @__PURE__ */ jsx5(ComboboxPrimitive.Portal, {
291
+ children: /* @__PURE__ */ jsx5(ComboboxPrimitive.Positioner, {
289
292
  align: "start",
290
293
  className: "isolate z-50",
291
294
  side: "bottom",
@@ -293,17 +296,17 @@ var VirtualizedComboboxContent = ({
293
296
  children: /* @__PURE__ */ jsxs(ComboboxPrimitive.Popup, {
294
297
  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),
295
298
  children: [
296
- /* @__PURE__ */ jsx4("div", {
299
+ /* @__PURE__ */ jsx5("div", {
297
300
  className: "min-w-0 shrink-0 p-1 pb-0",
298
- children: /* @__PURE__ */ jsx4(InputGroup, {
301
+ children: /* @__PURE__ */ jsx5(InputGroup, {
299
302
  className: "border-input/30 bg-input/30 h-8 w-full min-w-0 shadow-none",
300
- children: /* @__PURE__ */ jsx4(ComboboxPrimitive.Input, {
303
+ children: /* @__PURE__ */ jsx5(ComboboxPrimitive.Input, {
301
304
  placeholder: labels.search,
302
- render: /* @__PURE__ */ jsx4(InputGroupInput, {})
305
+ render: /* @__PURE__ */ jsx5(InputGroupInput, {})
303
306
  })
304
307
  })
305
308
  }),
306
- /* @__PURE__ */ jsx4(VirtualizedComboboxList, {
309
+ /* @__PURE__ */ jsx5(VirtualizedComboboxList, {
307
310
  emptyLabel,
308
311
  groupSelections,
309
312
  itemIndexRef,
@@ -327,20 +330,20 @@ var defaultTrigger = (ariaLabel, ariaInvalid, disabled, label, triggerId) => /*
327
330
  type: "button",
328
331
  variant: "outline",
329
332
  children: [
330
- /* @__PURE__ */ jsx4("span", {
333
+ /* @__PURE__ */ jsx5("span", {
331
334
  className: "min-w-0 flex-1 truncate pr-7 text-left",
332
335
  children: label
333
336
  }),
334
- /* @__PURE__ */ jsx4(ChevronsUpDown, {
337
+ /* @__PURE__ */ jsx5(ChevronsUpDown, {
335
338
  className: "text-muted-foreground shrink-0 opacity-70"
336
339
  })
337
340
  ]
338
341
  });
339
- var defaultClear = (label) => /* @__PURE__ */ jsx4(ComboboxPrimitive.Clear, {
342
+ var defaultClear = (label) => /* @__PURE__ */ jsx5(ComboboxPrimitive.Clear, {
340
343
  "aria-label": label,
341
344
  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",
342
345
  type: "button",
343
- children: /* @__PURE__ */ jsx4(X, {
346
+ children: /* @__PURE__ */ jsx5(X, {
344
347
  className: "size-3.5"
345
348
  })
346
349
  });
@@ -379,13 +382,13 @@ var VirtualizedComboboxSingle = (props) => {
379
382
  /* @__PURE__ */ jsxs("div", {
380
383
  className: "relative",
381
384
  children: [
382
- /* @__PURE__ */ jsx4(ComboboxPrimitive.Trigger, {
385
+ /* @__PURE__ */ jsx5(ComboboxPrimitive.Trigger, {
383
386
  render: props.trigger ?? defaultTrigger(props.ariaLabel, props.ariaInvalid, props.disabled, selectedLabel(props.value, props.placeholder), props.triggerId)
384
387
  }),
385
388
  props.trigger ? null : defaultClear(labels.clear)
386
389
  ]
387
390
  }),
388
- /* @__PURE__ */ jsx4(VirtualizedComboboxContent, {
391
+ /* @__PURE__ */ jsx5(VirtualizedComboboxContent, {
389
392
  ...props,
390
393
  groupSelections: false,
391
394
  itemIndexRef,
@@ -421,13 +424,13 @@ var VirtualizedComboboxMultiple = (props) => {
421
424
  /* @__PURE__ */ jsxs("div", {
422
425
  className: "relative",
423
426
  children: [
424
- /* @__PURE__ */ jsx4(ComboboxPrimitive.Trigger, {
427
+ /* @__PURE__ */ jsx5(ComboboxPrimitive.Trigger, {
425
428
  render: props.trigger ?? defaultTrigger(props.ariaLabel, props.ariaInvalid, props.disabled, selectedLabel(props.value, props.placeholder), props.triggerId)
426
429
  }),
427
430
  props.trigger ? null : defaultClear(labels.clear)
428
431
  ]
429
432
  }),
430
- /* @__PURE__ */ jsx4(VirtualizedComboboxContent, {
433
+ /* @__PURE__ */ jsx5(VirtualizedComboboxContent, {
431
434
  ...props,
432
435
  groupSelections: true,
433
436
  itemIndexRef,
@@ -439,10 +442,10 @@ var VirtualizedComboboxMultiple = (props) => {
439
442
  };
440
443
  function VirtualizedCombobox(props) {
441
444
  const locale = useKrakstackLocale(props.locale);
442
- return props.multiple ? /* @__PURE__ */ jsx4(VirtualizedComboboxMultiple, {
445
+ return props.multiple ? /* @__PURE__ */ jsx5(VirtualizedComboboxMultiple, {
443
446
  ...props,
444
447
  locale
445
- }) : /* @__PURE__ */ jsx4(VirtualizedComboboxSingle, {
448
+ }) : /* @__PURE__ */ jsx5(VirtualizedComboboxSingle, {
446
449
  ...props,
447
450
  locale
448
451
  });
@@ -450,7 +453,7 @@ function VirtualizedCombobox(props) {
450
453
 
451
454
  // ../../src/components/ui/icon-input.tsx
452
455
  import { useKrakstackLocale as useKrakstackLocale2 } from "@krak-stack/registry/krakstack-provider";
453
- import { jsx as jsx5, jsxs as jsxs2, Fragment as Fragment2 } from "react/jsx-runtime";
456
+ import { jsx as jsx6, jsxs as jsxs2, Fragment as Fragment2 } from "react/jsx-runtime";
454
457
  var IconifySearchResponse = Schema.Struct({
455
458
  icons: Schema.Array(Schema.String)
456
459
  }).pipe(Schema.annotate({ identifier: "IconifySearchResponse" }));
@@ -488,10 +491,10 @@ var labels = {
488
491
  select: "Sélectionner une icône"
489
492
  }
490
493
  };
491
- var iconInputLabels = (locale, messages) => ({
494
+ var iconInputLabels = (locale, messages2) => ({
492
495
  ...locale.startsWith("fr") ? labels.fr : labels.en,
493
- ...messages?.[locale.split("-")[0] ?? locale],
494
- ...messages?.[locale]
496
+ ...messages2?.[locale.split("-")[0] ?? locale],
497
+ ...messages2?.[locale]
495
498
  });
496
499
  var iconifyCollectionUrl = (collection) => `https://icon-sets.iconify.design/${encodeURIComponent(collection)}/`;
497
500
  function IconInput({
@@ -499,7 +502,7 @@ function IconInput({
499
502
  disabled,
500
503
  id,
501
504
  locale: localeOverride,
502
- messages,
505
+ messages: messages2,
503
506
  onValueChange,
504
507
  value
505
508
  }) {
@@ -509,24 +512,24 @@ function IconInput({
509
512
  const deferredQuery = useDeferredValue(query);
510
513
  const iconSearchResult = useIconSearchAtom(collection, deferredQuery);
511
514
  const icons = AsyncResult.isSuccess(iconSearchResult) ? iconSearchResult.value : [];
512
- const copy = iconInputLabels(locale, messages);
515
+ const copy = iconInputLabels(locale, messages2);
513
516
  const isWaiting = deferredQuery.trim() !== "" && AsyncResult.isWaiting(iconSearchResult);
514
517
  const items = icons.map((icon) => ({ label: icon, value: icon }));
515
518
  const selectedItem = value ? { label: value, value } : null;
516
- return /* @__PURE__ */ jsx5(VirtualizedCombobox, {
519
+ return /* @__PURE__ */ jsx6(VirtualizedCombobox, {
517
520
  ariaLabel: copy.select,
518
521
  contentClassName: "h-80 w-80",
519
522
  emptyLabel: isWaiting ? null : /* @__PURE__ */ jsxs2("div", {
520
523
  className: "text-muted-foreground flex flex-col items-center gap-2 px-3",
521
524
  children: [
522
- /* @__PURE__ */ jsx5(Search, {
525
+ /* @__PURE__ */ jsx6(Search, {
523
526
  className: "size-5"
524
527
  }),
525
- /* @__PURE__ */ jsx5("p", {
528
+ /* @__PURE__ */ jsx6("p", {
526
529
  children: query ? copy.empty : copy.searchPrompt
527
530
  }),
528
531
  /* @__PURE__ */ jsxs2(Button, {
529
- render: /* @__PURE__ */ jsx5("a", {
532
+ render: /* @__PURE__ */ jsx6("a", {
530
533
  href: iconifyCollectionUrl(collection),
531
534
  rel: "noreferrer",
532
535
  target: "_blank"
@@ -536,7 +539,7 @@ function IconInput({
536
539
  children: [
537
540
  copy.browse,
538
541
  " ",
539
- /* @__PURE__ */ jsx5(ExternalLink, {
542
+ /* @__PURE__ */ jsx6(ExternalLink, {
540
543
  className: "inline size-3"
541
544
  })
542
545
  ]
@@ -570,22 +573,22 @@ function IconInput({
570
573
  placeholder: copy.select,
571
574
  renderItem: (item) => /* @__PURE__ */ jsxs2(Fragment2, {
572
575
  children: [
573
- /* @__PURE__ */ jsx5(Icon, {
576
+ /* @__PURE__ */ jsx6(Icon, {
574
577
  className: "size-5 shrink-0",
575
578
  icon: `${collection}:${item.value}`
576
579
  }),
577
- /* @__PURE__ */ jsx5("span", {
580
+ /* @__PURE__ */ jsx6("span", {
578
581
  className: "truncate",
579
582
  children: item.label
580
583
  }),
581
- /* @__PURE__ */ jsx5("span", {
584
+ /* @__PURE__ */ jsx6("span", {
582
585
  className: "sr-only",
583
586
  children: copy.select
584
587
  })
585
588
  ]
586
589
  }),
587
590
  searchValue: query,
588
- trigger: /* @__PURE__ */ jsx5(Button, {
591
+ trigger: /* @__PURE__ */ jsx6(Button, {
589
592
  "aria-label": copy.select,
590
593
  disabled,
591
594
  id,
@@ -593,7 +596,7 @@ function IconInput({
593
596
  title: value,
594
597
  type: "button",
595
598
  variant: "outline",
596
- children: /* @__PURE__ */ jsx5(Icon, {
599
+ children: /* @__PURE__ */ jsx6(Icon, {
597
600
  className: "size-5",
598
601
  icon: `${collection}:${value}`
599
602
  })
@@ -22,7 +22,7 @@ var useKrakstackLocales = (locales) => {
22
22
  return locales ?? context.locales;
23
23
  };
24
24
  export {
25
- KrakstackProvider,
25
+ useKrakstackLocales,
26
26
  useKrakstackLocale,
27
- useKrakstackLocales
27
+ KrakstackProvider
28
28
  };
@@ -166,12 +166,12 @@ var localeMessages = (locale, translations) => {
166
166
  var LocaleSwitcher = ({
167
167
  locale: localeOverride,
168
168
  locales: localeOverrides,
169
- messages,
169
+ messages: messages2,
170
170
  onLocaleChange
171
171
  }) => {
172
172
  const locale = useKrakstackLocale(localeOverride);
173
173
  const localeOptions = useKrakstackLocales(localeOverrides);
174
- const labels = localeMessages(locale, messages);
174
+ const labels = localeMessages(locale, messages2);
175
175
  const LocaleSchema = Schema.String.check(Schema.makeFilter((value) => localeOptions.includes(value))).annotate({ identifier: "Locale" });
176
176
  return /* @__PURE__ */ jsxs2(DropdownMenu, {
177
177
  children: [
@@ -219,6 +219,6 @@ var LocaleSwitcher = ({
219
219
  });
220
220
  };
221
221
  export {
222
- LocaleSwitcher,
223
- locales
222
+ locales,
223
+ LocaleSwitcher
224
224
  };
@@ -354,6 +354,6 @@ function Pagination({
354
354
  });
355
355
  }
356
356
  export {
357
- Pagination,
358
- paginationMessages
357
+ paginationMessages,
358
+ Pagination
359
359
  };
@@ -284,7 +284,7 @@ function SearchMenu({
284
284
  placeholder,
285
285
  inputPlaceholder,
286
286
  emptyMessage,
287
- messages,
287
+ messages: messages2,
288
288
  shortcutLabel = "⌘K",
289
289
  className,
290
290
  open,
@@ -295,7 +295,7 @@ function SearchMenu({
295
295
  shouldFilter
296
296
  }) {
297
297
  const locale = useKrakstackLocale(localeOverride);
298
- const labels = searchMenuMessages(locale, messages);
298
+ const labels = searchMenuMessages(locale, messages2);
299
299
  const resolvedTitle = title ?? labels.title;
300
300
  const resolvedDescription = description ?? labels.description;
301
301
  const resolvedPlaceholder = placeholder ?? labels.placeholder;