@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
@@ -508,7 +508,7 @@ var FilePicker = ({
508
508
  image,
509
509
  invalid = false,
510
510
  locale: localeOverride,
511
- messages: messages2,
511
+ messages,
512
512
  multiple = false,
513
513
  name,
514
514
  onBlur,
@@ -519,7 +519,7 @@ var FilePicker = ({
519
519
  title
520
520
  }) => {
521
521
  const locale = useKrakstackLocale(localeOverride);
522
- const labels = filePickerMessages(locale, messages2);
522
+ const labels = filePickerMessages(locale, messages);
523
523
  const inputRef = useRef(null);
524
524
  const dragDepthRef = useRef(0);
525
525
  const [dragging, setDragging] = useState(false);
@@ -781,12 +781,11 @@ function Label({ className, ...props }) {
781
781
 
782
782
  // ../../src/components/ui/separator.tsx
783
783
  import { Separator as SeparatorPrimitive } from "@base-ui/react/separator";
784
- import { jsx as jsx9 } from "react/jsx-runtime";
785
784
 
786
785
  // ../../src/components/ui/field.tsx
787
- import { jsx as jsx10, jsxs as jsxs4 } from "react/jsx-runtime";
786
+ import { jsx as jsx9, jsxs as jsxs4 } from "react/jsx-runtime";
788
787
  function FieldSet({ className, ...props }) {
789
- return /* @__PURE__ */ jsx10("fieldset", {
788
+ return /* @__PURE__ */ jsx9("fieldset", {
790
789
  "data-slot": "field-set",
791
790
  className: cn("flex flex-col gap-6 has-[>[data-slot=checkbox-group]]:gap-3 has-[>[data-slot=radio-group]]:gap-3", className),
792
791
  ...props
@@ -797,7 +796,7 @@ function FieldLegend({
797
796
  variant = "legend",
798
797
  ...props
799
798
  }) {
800
- return /* @__PURE__ */ jsx10("legend", {
799
+ return /* @__PURE__ */ jsx9("legend", {
801
800
  "data-slot": "field-legend",
802
801
  "data-variant": variant,
803
802
  className: cn("mb-3 font-medium data-[variant=label]:text-sm data-[variant=legend]:text-base", className),
@@ -805,7 +804,7 @@ function FieldLegend({
805
804
  });
806
805
  }
807
806
  function FieldGroup({ className, ...props }) {
808
- return /* @__PURE__ */ jsx10("div", {
807
+ return /* @__PURE__ */ jsx9("div", {
809
808
  "data-slot": "field-group",
810
809
  className: cn("group/field-group @container/field-group flex w-full flex-col gap-7 data-[slot=checkbox-group]:gap-3 *:data-[slot=field-group]:gap-4", className),
811
810
  ...props
@@ -828,7 +827,7 @@ function Field({
828
827
  orientation = "vertical",
829
828
  ...props
830
829
  }) {
831
- return /* @__PURE__ */ jsx10("div", {
830
+ return /* @__PURE__ */ jsx9("div", {
832
831
  role: "group",
833
832
  "data-slot": "field",
834
833
  "data-orientation": orientation,
@@ -840,14 +839,14 @@ function FieldLabel({
840
839
  className,
841
840
  ...props
842
841
  }) {
843
- return /* @__PURE__ */ jsx10(Label, {
842
+ return /* @__PURE__ */ jsx9(Label, {
844
843
  "data-slot": "field-label",
845
844
  className: cn("group/field-label peer/field-label flex w-fit gap-2 leading-snug group-data-[disabled=true]/field:opacity-50 has-data-checked:border-primary/30 has-data-checked:bg-primary/5 has-[>[data-slot=field]]:rounded-md has-[>[data-slot=field]]:border *:data-[slot=field]:p-3 dark:has-data-checked:border-primary/20 dark:has-data-checked:bg-primary/10", "has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col", className),
846
845
  ...props
847
846
  });
848
847
  }
849
848
  function FieldDescription({ className, ...props }) {
850
- return /* @__PURE__ */ jsx10("p", {
849
+ return /* @__PURE__ */ jsx9("p", {
851
850
  "data-slot": "field-description",
852
851
  className: cn("text-left text-sm leading-normal font-normal text-muted-foreground group-has-data-horizontal/field:text-balance [[data-variant=legend]+&]:-mt-1.5", "last:mt-0 nth-last-2:-mt-1", "[&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary", className),
853
852
  ...props
@@ -855,9 +854,9 @@ function FieldDescription({ className, ...props }) {
855
854
  }
856
855
 
857
856
  // ../../src/components/ui/textarea.tsx
858
- import { jsx as jsx11 } from "react/jsx-runtime";
857
+ import { jsx as jsx10 } from "react/jsx-runtime";
859
858
  function Textarea({ className, ...props }) {
860
- return /* @__PURE__ */ jsx11("textarea", {
859
+ return /* @__PURE__ */ jsx10("textarea", {
861
860
  "data-slot": "textarea",
862
861
  className: cn("flex field-sizing-content min-h-16 w-full rounded-md border border-input bg-transparent px-2.5 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40", className),
863
862
  ...props
@@ -915,9 +914,9 @@ import {
915
914
 
916
915
  // ../../src/components/ui/input-group.tsx
917
916
  import { cva as cva5 } from "class-variance-authority";
918
- import { jsx as jsx12 } from "react/jsx-runtime";
917
+ import { jsx as jsx11 } from "react/jsx-runtime";
919
918
  function InputGroup({ className, ...props }) {
920
- return /* @__PURE__ */ jsx12("div", {
919
+ return /* @__PURE__ */ jsx11("div", {
921
920
  "data-slot": "input-group",
922
921
  role: "group",
923
922
  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),
@@ -950,7 +949,7 @@ function InputGroupInput({
950
949
  className,
951
950
  ...props
952
951
  }) {
953
- return /* @__PURE__ */ jsx12(Input, {
952
+ return /* @__PURE__ */ jsx11(Input, {
954
953
  "data-slot": "input-group-control",
955
954
  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),
956
955
  ...props
@@ -959,7 +958,7 @@ function InputGroupInput({
959
958
 
960
959
  // ../../src/components/ui/virtualized-combobox.tsx
961
960
  import { useKrakstackLocale as useKrakstackLocale2 } from "@krak-stack/registry/krakstack-provider";
962
- import { jsx as jsx13, jsxs as jsxs5, Fragment as Fragment2 } from "react/jsx-runtime";
961
+ import { jsx as jsx12, jsxs as jsxs5, Fragment as Fragment2 } from "react/jsx-runtime";
963
962
  "use client";
964
963
  var messages2 = {
965
964
  en: {
@@ -1000,7 +999,7 @@ var VirtualizedComboboxList = ({
1000
999
  }));
1001
1000
  const selectedEntries = itemEntries.filter(({ item }) => selectedValues.has(item.value));
1002
1001
  const availableEntries = itemEntries.filter(({ item }) => !selectedValues.has(item.value));
1003
- const entries = groupSelections ? [
1002
+ const entries = filteredItems.length === 0 ? [] : groupSelections ? [
1004
1003
  ...selectedEntries.length > 0 ? [
1005
1004
  {
1006
1005
  kind: "group",
@@ -1038,11 +1037,11 @@ var VirtualizedComboboxList = ({
1038
1037
  }, [virtualizer]);
1039
1038
  return /* @__PURE__ */ jsxs5(Fragment2, {
1040
1039
  children: [
1041
- filteredItems.length === 0 && /* @__PURE__ */ jsx13("div", {
1040
+ filteredItems.length === 0 && /* @__PURE__ */ jsx12("div", {
1042
1041
  className: "text-muted-foreground flex min-h-0 flex-1 flex-col items-center justify-center overflow-auto py-6 text-center text-sm",
1043
1042
  children: emptyLabel
1044
1043
  }),
1045
- /* @__PURE__ */ jsx13(ComboboxPrimitive.List, {
1044
+ /* @__PURE__ */ jsx12(ComboboxPrimitive.List, {
1046
1045
  className: "min-h-0 flex-1 scroll-py-1 overflow-auto overscroll-contain p-1",
1047
1046
  hidden: filteredItems.length === 0,
1048
1047
  ref: handleScrollElementRef,
@@ -1050,7 +1049,7 @@ var VirtualizedComboboxList = ({
1050
1049
  height: Math.min(virtualizer.getTotalSize() + 8, 288),
1051
1050
  maxHeight: "var(--available-height)"
1052
1051
  },
1053
- children: /* @__PURE__ */ jsx13("div", {
1052
+ children: /* @__PURE__ */ jsx12("div", {
1054
1053
  className: "relative w-full",
1055
1054
  role: "presentation",
1056
1055
  style: { height: virtualizer.getTotalSize() },
@@ -1063,9 +1062,9 @@ var VirtualizedComboboxList = ({
1063
1062
  transform: `translateY(${virtualItem.start}px)`
1064
1063
  };
1065
1064
  if (entry.kind === "group") {
1066
- return /* @__PURE__ */ jsx13(ComboboxPrimitive.Group, {
1065
+ return /* @__PURE__ */ jsx12(ComboboxPrimitive.Group, {
1067
1066
  className: "contents",
1068
- children: /* @__PURE__ */ jsx13(ComboboxPrimitive.GroupLabel, {
1067
+ children: /* @__PURE__ */ jsx12(ComboboxPrimitive.GroupLabel, {
1069
1068
  className: "text-muted-foreground absolute top-0 left-0 w-full px-2 pt-3 pb-1 text-xs",
1070
1069
  "data-index": virtualItem.index,
1071
1070
  ref: virtualizer.measureElement,
@@ -1084,13 +1083,13 @@ var VirtualizedComboboxList = ({
1084
1083
  style,
1085
1084
  value: entry.item,
1086
1085
  children: [
1087
- renderItem?.(entry.item) ?? /* @__PURE__ */ jsx13("span", {
1086
+ renderItem?.(entry.item) ?? /* @__PURE__ */ jsx12("span", {
1088
1087
  className: "min-w-0 truncate",
1089
1088
  children: entry.item.label
1090
1089
  }),
1091
- /* @__PURE__ */ jsx13(ComboboxPrimitive.ItemIndicator, {
1090
+ /* @__PURE__ */ jsx12(ComboboxPrimitive.ItemIndicator, {
1092
1091
  className: "absolute right-2 flex size-4 items-center justify-center",
1093
- children: /* @__PURE__ */ jsx13(Check, {})
1092
+ children: /* @__PURE__ */ jsx12(Check, {})
1094
1093
  })
1095
1094
  ]
1096
1095
  }, entry.item.value);
@@ -1112,26 +1111,26 @@ var VirtualizedComboboxContent = ({
1112
1111
  virtualizerRef
1113
1112
  }) => {
1114
1113
  const labels = virtualizedComboboxMessages(locale, messageOverrides);
1115
- return /* @__PURE__ */ jsx13(ComboboxPrimitive.Portal, {
1116
- children: /* @__PURE__ */ jsx13(ComboboxPrimitive.Positioner, {
1114
+ return /* @__PURE__ */ jsx12(ComboboxPrimitive.Portal, {
1115
+ children: /* @__PURE__ */ jsx12(ComboboxPrimitive.Positioner, {
1117
1116
  align: "start",
1118
1117
  className: "isolate z-50",
1119
1118
  side: "bottom",
1120
1119
  sideOffset: 6,
1121
1120
  children: /* @__PURE__ */ jsxs5(ComboboxPrimitive.Popup, {
1122
- 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),
1121
+ 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),
1123
1122
  children: [
1124
- /* @__PURE__ */ jsx13("div", {
1123
+ /* @__PURE__ */ jsx12("div", {
1125
1124
  className: "min-w-0 shrink-0 p-1 pb-0",
1126
- children: /* @__PURE__ */ jsx13(InputGroup, {
1125
+ children: /* @__PURE__ */ jsx12(InputGroup, {
1127
1126
  className: "border-input/30 bg-input/30 h-8 w-full min-w-0 shadow-none",
1128
- children: /* @__PURE__ */ jsx13(ComboboxPrimitive.Input, {
1127
+ children: /* @__PURE__ */ jsx12(ComboboxPrimitive.Input, {
1129
1128
  placeholder: labels.search,
1130
- render: /* @__PURE__ */ jsx13(InputGroupInput, {})
1129
+ render: /* @__PURE__ */ jsx12(InputGroupInput, {})
1131
1130
  })
1132
1131
  })
1133
1132
  }),
1134
- /* @__PURE__ */ jsx13(VirtualizedComboboxList, {
1133
+ /* @__PURE__ */ jsx12(VirtualizedComboboxList, {
1135
1134
  emptyLabel,
1136
1135
  groupSelections,
1137
1136
  itemIndexRef,
@@ -1155,20 +1154,20 @@ var defaultTrigger = (ariaLabel, ariaInvalid, disabled, label, triggerId) => /*
1155
1154
  type: "button",
1156
1155
  variant: "outline",
1157
1156
  children: [
1158
- /* @__PURE__ */ jsx13("span", {
1157
+ /* @__PURE__ */ jsx12("span", {
1159
1158
  className: "min-w-0 flex-1 truncate pr-7 text-left",
1160
1159
  children: label
1161
1160
  }),
1162
- /* @__PURE__ */ jsx13(ChevronsUpDown, {
1161
+ /* @__PURE__ */ jsx12(ChevronsUpDown, {
1163
1162
  className: "text-muted-foreground shrink-0 opacity-70"
1164
1163
  })
1165
1164
  ]
1166
1165
  });
1167
- var defaultClear = (label) => /* @__PURE__ */ jsx13(ComboboxPrimitive.Clear, {
1166
+ var defaultClear = (label) => /* @__PURE__ */ jsx12(ComboboxPrimitive.Clear, {
1168
1167
  "aria-label": label,
1169
1168
  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",
1170
1169
  type: "button",
1171
- children: /* @__PURE__ */ jsx13(X, {
1170
+ children: /* @__PURE__ */ jsx12(X, {
1172
1171
  className: "size-3.5"
1173
1172
  })
1174
1173
  });
@@ -1207,13 +1206,13 @@ var VirtualizedComboboxSingle = (props) => {
1207
1206
  /* @__PURE__ */ jsxs5("div", {
1208
1207
  className: "relative",
1209
1208
  children: [
1210
- /* @__PURE__ */ jsx13(ComboboxPrimitive.Trigger, {
1209
+ /* @__PURE__ */ jsx12(ComboboxPrimitive.Trigger, {
1211
1210
  render: props.trigger ?? defaultTrigger(props.ariaLabel, props.ariaInvalid, props.disabled, selectedLabel(props.value, props.placeholder), props.triggerId)
1212
1211
  }),
1213
1212
  props.trigger ? null : defaultClear(labels.clear)
1214
1213
  ]
1215
1214
  }),
1216
- /* @__PURE__ */ jsx13(VirtualizedComboboxContent, {
1215
+ /* @__PURE__ */ jsx12(VirtualizedComboboxContent, {
1217
1216
  ...props,
1218
1217
  groupSelections: false,
1219
1218
  itemIndexRef,
@@ -1249,13 +1248,13 @@ var VirtualizedComboboxMultiple = (props) => {
1249
1248
  /* @__PURE__ */ jsxs5("div", {
1250
1249
  className: "relative",
1251
1250
  children: [
1252
- /* @__PURE__ */ jsx13(ComboboxPrimitive.Trigger, {
1251
+ /* @__PURE__ */ jsx12(ComboboxPrimitive.Trigger, {
1253
1252
  render: props.trigger ?? defaultTrigger(props.ariaLabel, props.ariaInvalid, props.disabled, selectedLabel(props.value, props.placeholder), props.triggerId)
1254
1253
  }),
1255
1254
  props.trigger ? null : defaultClear(labels.clear)
1256
1255
  ]
1257
1256
  }),
1258
- /* @__PURE__ */ jsx13(VirtualizedComboboxContent, {
1257
+ /* @__PURE__ */ jsx12(VirtualizedComboboxContent, {
1259
1258
  ...props,
1260
1259
  groupSelections: true,
1261
1260
  itemIndexRef,
@@ -1267,10 +1266,10 @@ var VirtualizedComboboxMultiple = (props) => {
1267
1266
  };
1268
1267
  function VirtualizedCombobox(props) {
1269
1268
  const locale = useKrakstackLocale2(props.locale);
1270
- return props.multiple ? /* @__PURE__ */ jsx13(VirtualizedComboboxMultiple, {
1269
+ return props.multiple ? /* @__PURE__ */ jsx12(VirtualizedComboboxMultiple, {
1271
1270
  ...props,
1272
1271
  locale
1273
- }) : /* @__PURE__ */ jsx13(VirtualizedComboboxSingle, {
1272
+ }) : /* @__PURE__ */ jsx12(VirtualizedComboboxSingle, {
1274
1273
  ...props,
1275
1274
  locale
1276
1275
  });
@@ -1278,7 +1277,7 @@ function VirtualizedCombobox(props) {
1278
1277
 
1279
1278
  // ../../src/components/ui/form.tsx
1280
1279
  import { useKrakstackLocale as useKrakstackLocale3 } from "@krak-stack/registry/krakstack-provider";
1281
- import { jsx as jsx14, jsxs as jsxs6 } from "react/jsx-runtime";
1280
+ import { jsx as jsx13, jsxs as jsxs6 } from "react/jsx-runtime";
1282
1281
  var messages3 = {
1283
1282
  en: {
1284
1283
  keyValueKey: "Key",
@@ -1318,14 +1317,14 @@ var formMessages = (locale = "en", translations) => ({
1318
1317
  });
1319
1318
  var useFormMessages = (locale, translations) => formMessages(useKrakstackLocale3(locale), translations);
1320
1319
  var ErrorMessage = ({ text }) => {
1321
- return /* @__PURE__ */ jsx14("em", {
1320
+ return /* @__PURE__ */ jsx13("em", {
1322
1321
  role: "alert",
1323
1322
  className: "text-destructive text-sm",
1324
1323
  children: text
1325
1324
  });
1326
1325
  };
1327
1326
  function FieldError({ errors = [] }) {
1328
- return errors?.length > 0 ? /* @__PURE__ */ jsx14(ErrorMessage, {
1327
+ return errors?.length > 0 ? /* @__PURE__ */ jsx13(ErrorMessage, {
1329
1328
  text: errors.map((error) => {
1330
1329
  return error.message?.toString().split(" ").map((word) => {
1331
1330
  if (word.startsWith("t:"))
@@ -1349,24 +1348,24 @@ var TextField = ({
1349
1348
  /* @__PURE__ */ jsxs6("div", {
1350
1349
  className: "flex w-full items-center gap-2",
1351
1350
  children: [
1352
- /* @__PURE__ */ jsx14(FieldLabel, {
1351
+ /* @__PURE__ */ jsx13(FieldLabel, {
1353
1352
  htmlFor: field.name,
1354
1353
  children: props.label
1355
1354
  }),
1356
1355
  children
1357
1356
  ]
1358
1357
  }),
1359
- /* @__PURE__ */ jsx14(Input, {
1358
+ /* @__PURE__ */ jsx13(Input, {
1360
1359
  id: field.name,
1361
1360
  value: field.state.value ?? "",
1362
1361
  onChange: (e) => field.handleChange(e.target.value),
1363
1362
  ...props,
1364
1363
  "aria-invalid": invalid
1365
1364
  }),
1366
- props.description && /* @__PURE__ */ jsx14(FieldDescription, {
1365
+ props.description && /* @__PURE__ */ jsx13(FieldDescription, {
1367
1366
  children: props.description
1368
1367
  }),
1369
- /* @__PURE__ */ jsx14(FieldError, {
1368
+ /* @__PURE__ */ jsx13(FieldError, {
1370
1369
  errors: field.getMeta().errors
1371
1370
  })
1372
1371
  ]
@@ -1385,24 +1384,24 @@ var TextAreaField = ({
1385
1384
  /* @__PURE__ */ jsxs6("div", {
1386
1385
  className: "flex w-full items-center gap-2",
1387
1386
  children: [
1388
- /* @__PURE__ */ jsx14(FieldLabel, {
1387
+ /* @__PURE__ */ jsx13(FieldLabel, {
1389
1388
  htmlFor: field.name,
1390
1389
  children: props.label
1391
1390
  }),
1392
1391
  children
1393
1392
  ]
1394
1393
  }),
1395
- /* @__PURE__ */ jsx14(Textarea, {
1394
+ /* @__PURE__ */ jsx13(Textarea, {
1396
1395
  id: field.name,
1397
1396
  value: field.state.value ?? "",
1398
1397
  onChange: (e) => field.handleChange(e.target.value),
1399
1398
  ...props,
1400
1399
  "aria-invalid": invalid
1401
1400
  }),
1402
- props.description && /* @__PURE__ */ jsx14(FieldDescription, {
1401
+ props.description && /* @__PURE__ */ jsx13(FieldDescription, {
1403
1402
  children: props.description
1404
1403
  }),
1405
- /* @__PURE__ */ jsx14(FieldError, {
1404
+ /* @__PURE__ */ jsx13(FieldError, {
1406
1405
  errors: field.getMeta().errors
1407
1406
  })
1408
1407
  ]
@@ -1417,7 +1416,7 @@ var CheckboxField = (props) => {
1417
1416
  /* @__PURE__ */ jsxs6("div", {
1418
1417
  className: "flex flex-row items-center gap-2",
1419
1418
  children: [
1420
- /* @__PURE__ */ jsx14(Checkbox, {
1419
+ /* @__PURE__ */ jsx13(Checkbox, {
1421
1420
  id: field.name,
1422
1421
  name: field.name,
1423
1422
  checked: field.state.value ?? false,
@@ -1425,16 +1424,16 @@ var CheckboxField = (props) => {
1425
1424
  onCheckedChange: (checked) => field.handleChange(checked),
1426
1425
  "aria-invalid": invalid
1427
1426
  }),
1428
- /* @__PURE__ */ jsx14(FieldLabel, {
1427
+ /* @__PURE__ */ jsx13(FieldLabel, {
1429
1428
  htmlFor: field.name,
1430
1429
  children: props.label
1431
1430
  })
1432
1431
  ]
1433
1432
  }),
1434
- props.description && /* @__PURE__ */ jsx14(FieldDescription, {
1433
+ props.description && /* @__PURE__ */ jsx13(FieldDescription, {
1435
1434
  children: props.description
1436
1435
  }),
1437
- /* @__PURE__ */ jsx14(FieldError, {
1436
+ /* @__PURE__ */ jsx13(FieldError, {
1438
1437
  errors: field.getMeta().errors
1439
1438
  })
1440
1439
  ]
@@ -1452,15 +1451,15 @@ var SingleSelectControl = ({
1452
1451
  onValueChange: (value) => field.handleChange(value ?? ""),
1453
1452
  defaultValue: field.state.value,
1454
1453
  children: [
1455
- /* @__PURE__ */ jsx14(SelectTrigger, {
1454
+ /* @__PURE__ */ jsx13(SelectTrigger, {
1456
1455
  className: "gap-1",
1457
1456
  id: field.name,
1458
1457
  "aria-invalid": invalid,
1459
- children: /* @__PURE__ */ jsx14(SelectValue, {
1458
+ children: /* @__PURE__ */ jsx13(SelectValue, {
1460
1459
  placeholder
1461
1460
  })
1462
1461
  }),
1463
- /* @__PURE__ */ jsx14(SelectOptions, {
1462
+ /* @__PURE__ */ jsx13(SelectOptions, {
1464
1463
  options
1465
1464
  })
1466
1465
  ]
@@ -1478,15 +1477,15 @@ var MultipleSelectControl = ({
1478
1477
  multiple: true,
1479
1478
  value: field.state.value ?? [],
1480
1479
  children: [
1481
- /* @__PURE__ */ jsx14(SelectTrigger, {
1480
+ /* @__PURE__ */ jsx13(SelectTrigger, {
1482
1481
  className: "gap-1",
1483
1482
  id: field.name,
1484
1483
  "aria-invalid": invalid,
1485
- children: /* @__PURE__ */ jsx14(SelectValue, {
1484
+ children: /* @__PURE__ */ jsx13(SelectValue, {
1486
1485
  placeholder
1487
1486
  })
1488
1487
  }),
1489
- /* @__PURE__ */ jsx14(SelectOptions, {
1488
+ /* @__PURE__ */ jsx13(SelectOptions, {
1490
1489
  options
1491
1490
  })
1492
1491
  ]
@@ -1494,9 +1493,9 @@ var MultipleSelectControl = ({
1494
1493
  };
1495
1494
  var SelectOptions = ({
1496
1495
  options
1497
- }) => /* @__PURE__ */ jsx14(SelectContent, {
1498
- children: /* @__PURE__ */ jsx14(SelectGroup, {
1499
- children: options.map((option) => /* @__PURE__ */ jsx14(SelectItem, {
1496
+ }) => /* @__PURE__ */ jsx13(SelectContent, {
1497
+ children: /* @__PURE__ */ jsx13(SelectGroup, {
1498
+ children: options.map((option) => /* @__PURE__ */ jsx13(SelectItem, {
1500
1499
  value: option.value,
1501
1500
  children: option.label
1502
1501
  }, option.label))
@@ -1514,23 +1513,23 @@ var SelectField = ({
1514
1513
  return /* @__PURE__ */ jsxs6(Field, {
1515
1514
  "data-invalid": invalid,
1516
1515
  children: [
1517
- /* @__PURE__ */ jsx14(FieldLabel, {
1516
+ /* @__PURE__ */ jsx13(FieldLabel, {
1518
1517
  htmlFor: field.name,
1519
1518
  children: label
1520
1519
  }),
1521
- multiple ? /* @__PURE__ */ jsx14(MultipleSelectControl, {
1520
+ multiple ? /* @__PURE__ */ jsx13(MultipleSelectControl, {
1522
1521
  invalid,
1523
1522
  options,
1524
1523
  placeholder
1525
- }) : /* @__PURE__ */ jsx14(SingleSelectControl, {
1524
+ }) : /* @__PURE__ */ jsx13(SingleSelectControl, {
1526
1525
  invalid,
1527
1526
  options,
1528
1527
  placeholder
1529
1528
  }),
1530
- description ? /* @__PURE__ */ jsx14(FieldDescription, {
1529
+ description ? /* @__PURE__ */ jsx13(FieldDescription, {
1531
1530
  children: description
1532
1531
  }) : null,
1533
- /* @__PURE__ */ jsx14(FieldError, {
1532
+ /* @__PURE__ */ jsx13(FieldError, {
1534
1533
  errors: field.getMeta().errors
1535
1534
  })
1536
1535
  ]
@@ -1560,14 +1559,14 @@ var KeyValueField = (props) => {
1560
1559
  return /* @__PURE__ */ jsxs6(Field, {
1561
1560
  "data-invalid": invalid,
1562
1561
  children: [
1563
- /* @__PURE__ */ jsx14(FieldLabel, {
1562
+ /* @__PURE__ */ jsx13(FieldLabel, {
1564
1563
  htmlFor: field.name,
1565
1564
  children: props.label
1566
1565
  }),
1567
1566
  keyValues.map(([key, value], index) => /* @__PURE__ */ jsxs6("div", {
1568
1567
  className: "flex w-full flex-row items-center gap-2",
1569
1568
  children: [
1570
- /* @__PURE__ */ jsx14(Input, {
1569
+ /* @__PURE__ */ jsx13(Input, {
1571
1570
  id: field.name,
1572
1571
  placeholder: labels.keyValueKey,
1573
1572
  name: field.name,
@@ -1578,7 +1577,7 @@ var KeyValueField = (props) => {
1578
1577
  field.handleChange(updateKeyValue(e.target.value, value, index));
1579
1578
  }
1580
1579
  }),
1581
- /* @__PURE__ */ jsx14(Input, {
1580
+ /* @__PURE__ */ jsx13(Input, {
1582
1581
  id: field.name,
1583
1582
  name: field.name,
1584
1583
  type: "text",
@@ -1597,13 +1596,13 @@ var KeyValueField = (props) => {
1597
1596
  field.handleChange(deleteKeyValue(index));
1598
1597
  },
1599
1598
  children: [
1600
- /* @__PURE__ */ jsx14(Trash, {}),
1599
+ /* @__PURE__ */ jsx13(Trash, {}),
1601
1600
  labels.keyValueDelete
1602
1601
  ]
1603
1602
  })
1604
1603
  ]
1605
1604
  }, index)),
1606
- /* @__PURE__ */ jsx14("div", {
1605
+ /* @__PURE__ */ jsx13("div", {
1607
1606
  className: "flex flex-row items-center gap-2",
1608
1607
  children: /* @__PURE__ */ jsxs6(Button, {
1609
1608
  size: "sm",
@@ -1616,21 +1615,21 @@ var KeyValueField = (props) => {
1616
1615
  });
1617
1616
  },
1618
1617
  children: [
1619
- /* @__PURE__ */ jsx14(Plus, {}),
1618
+ /* @__PURE__ */ jsx13(Plus, {}),
1620
1619
  labels.keyValueAdd
1621
1620
  ]
1622
1621
  })
1623
1622
  }),
1624
- props.description && /* @__PURE__ */ jsx14(FieldDescription, {
1623
+ props.description && /* @__PURE__ */ jsx13(FieldDescription, {
1625
1624
  children: props.description
1626
1625
  }),
1627
- /* @__PURE__ */ jsx14(FieldError, {
1626
+ /* @__PURE__ */ jsx13(FieldError, {
1628
1627
  errors: field.getMeta().errors
1629
1628
  })
1630
1629
  ]
1631
1630
  });
1632
1631
  };
1633
- var MultiSelectField = (props) => /* @__PURE__ */ jsx14(SelectField, {
1632
+ var MultiSelectField = (props) => /* @__PURE__ */ jsx13(SelectField, {
1634
1633
  ...props,
1635
1634
  multiple: true
1636
1635
  });
@@ -1653,7 +1652,7 @@ var SingleSearchableSelectControl = ({
1653
1652
  invalid,
1654
1653
  items,
1655
1654
  locale,
1656
- messages: messages4,
1655
+ messages,
1657
1656
  name,
1658
1657
  onSearchValueChange,
1659
1658
  placeholder,
@@ -1662,13 +1661,13 @@ var SingleSearchableSelectControl = ({
1662
1661
  }) => {
1663
1662
  const field = useFieldContext();
1664
1663
  const { selectedItems, mergedItems } = getSearchableSelectItems(field.state.value ? [field.state.value] : [], initialItems, items);
1665
- return /* @__PURE__ */ jsx14(VirtualizedCombobox, {
1664
+ return /* @__PURE__ */ jsx13(VirtualizedCombobox, {
1666
1665
  ariaInvalid: invalid,
1667
1666
  ariaLabel,
1668
1667
  emptyLabel,
1669
1668
  items: mergedItems,
1670
1669
  locale,
1671
- ...messages4 ? { messages: messages4 } : {},
1670
+ ...messages ? { messages } : {},
1672
1671
  onValueChange: (option) => field.handleChange(option?.value ?? ""),
1673
1672
  placeholder,
1674
1673
  triggerId: name,
@@ -1685,7 +1684,7 @@ var MultipleSearchableSelectControl = ({
1685
1684
  invalid,
1686
1685
  items,
1687
1686
  locale,
1688
- messages: messages4,
1687
+ messages,
1689
1688
  name,
1690
1689
  onSearchValueChange,
1691
1690
  placeholder,
@@ -1694,13 +1693,13 @@ var MultipleSearchableSelectControl = ({
1694
1693
  }) => {
1695
1694
  const field = useFieldContext();
1696
1695
  const { selectedItems, mergedItems } = getSearchableSelectItems(field.state.value ?? [], initialItems, items);
1697
- return /* @__PURE__ */ jsx14(VirtualizedCombobox, {
1696
+ return /* @__PURE__ */ jsx13(VirtualizedCombobox, {
1698
1697
  ariaInvalid: invalid,
1699
1698
  ariaLabel,
1700
1699
  emptyLabel,
1701
1700
  items: mergedItems,
1702
1701
  locale,
1703
- ...messages4 ? { messages: messages4 } : {},
1702
+ ...messages ? { messages } : {},
1704
1703
  multiple: true,
1705
1704
  onValueChange: (options) => field.handleChange(options.map(({ value }) => value)),
1706
1705
  placeholder,
@@ -1733,19 +1732,19 @@ var SearchableSelectField = ({
1733
1732
  className: "min-w-0",
1734
1733
  "data-invalid": invalid,
1735
1734
  children: [
1736
- /* @__PURE__ */ jsx14(FieldLabel, {
1735
+ /* @__PURE__ */ jsx13(FieldLabel, {
1737
1736
  htmlFor: field.name,
1738
1737
  children: label
1739
1738
  }),
1740
- multiple ? /* @__PURE__ */ jsx14(MultipleSearchableSelectControl, {
1739
+ multiple ? /* @__PURE__ */ jsx13(MultipleSearchableSelectControl, {
1741
1740
  ...controlProps
1742
- }) : /* @__PURE__ */ jsx14(SingleSearchableSelectControl, {
1741
+ }) : /* @__PURE__ */ jsx13(SingleSearchableSelectControl, {
1743
1742
  ...controlProps
1744
1743
  }),
1745
- description ? /* @__PURE__ */ jsx14(FieldDescription, {
1744
+ description ? /* @__PURE__ */ jsx13(FieldDescription, {
1746
1745
  children: description
1747
1746
  }) : null,
1748
- /* @__PURE__ */ jsx14(FieldError, {
1747
+ /* @__PURE__ */ jsx13(FieldError, {
1749
1748
  errors: field.getMeta().errors
1750
1749
  })
1751
1750
  ]
@@ -1754,24 +1753,24 @@ var SearchableSelectField = ({
1754
1753
  var FileField = ({
1755
1754
  label,
1756
1755
  accept,
1757
- filePickerMessages: filePickerMessages2,
1756
+ filePickerMessages,
1758
1757
  locale: localeOverride,
1759
- messages: messages4,
1758
+ messages,
1760
1759
  onFileChange,
1761
1760
  required = false
1762
1761
  }) => {
1763
1762
  const locale = useKrakstackLocale3(localeOverride);
1764
- const labels = formMessages(locale, messages4);
1763
+ const labels = formMessages(locale, messages);
1765
1764
  const field = useFieldContext();
1766
1765
  const invalid = !field.state.meta.isValid;
1767
1766
  return /* @__PURE__ */ jsxs6(Field, {
1768
1767
  "data-invalid": invalid,
1769
1768
  children: [
1770
- /* @__PURE__ */ jsx14(FieldLabel, {
1769
+ /* @__PURE__ */ jsx13(FieldLabel, {
1771
1770
  htmlFor: field.name,
1772
1771
  children: label
1773
1772
  }),
1774
- /* @__PURE__ */ jsx14(FilePicker, {
1773
+ /* @__PURE__ */ jsx13(FilePicker, {
1775
1774
  accept,
1776
1775
  canClear: field.state.value instanceof File,
1777
1776
  ...field.state.value instanceof File ? { file: field.state.value } : {},
@@ -1779,10 +1778,10 @@ var FileField = ({
1779
1778
  invalid,
1780
1779
  locale,
1781
1780
  messages: {
1782
- ...filePickerMessages2,
1781
+ ...filePickerMessages,
1783
1782
  [locale]: {
1784
- ...filePickerMessages2?.[locale.split("-")[0] ?? locale],
1785
- ...filePickerMessages2?.[locale],
1783
+ ...filePickerMessages?.[locale.split("-")[0] ?? locale],
1784
+ ...filePickerMessages?.[locale],
1786
1785
  accepts: labels.accepts,
1787
1786
  deleteFile: labels.delete
1788
1787
  }
@@ -1800,21 +1799,21 @@ var FileField = ({
1800
1799
  required,
1801
1800
  title: field.state.value instanceof File ? field.state.value.name : label
1802
1801
  }),
1803
- /* @__PURE__ */ jsx14(FieldError, {
1802
+ /* @__PURE__ */ jsx13(FieldError, {
1804
1803
  errors: field.getMeta().errors
1805
1804
  })
1806
1805
  ]
1807
1806
  });
1808
1807
  };
1809
1808
  var ImageField = ({
1810
- filePickerMessages: filePickerMessages2,
1809
+ filePickerMessages,
1811
1810
  label,
1812
1811
  locale: localeOverride,
1813
- messages: messages4,
1812
+ messages,
1814
1813
  size
1815
1814
  }) => {
1816
1815
  const locale = useKrakstackLocale3(localeOverride);
1817
- const labels = formMessages(locale, messages4);
1816
+ const labels = formMessages(locale, messages);
1818
1817
  const field = useFieldContext();
1819
1818
  const invalid = !field.state.meta.isValid;
1820
1819
  const imageUrl = Schema2.is(Schema2.String)(field.state.value) ? field.state.value : undefined;
@@ -1827,11 +1826,11 @@ var ImageField = ({
1827
1826
  return /* @__PURE__ */ jsxs6(Field, {
1828
1827
  "data-invalid": invalid,
1829
1828
  children: [
1830
- /* @__PURE__ */ jsx14(FieldLabel, {
1829
+ /* @__PURE__ */ jsx13(FieldLabel, {
1831
1830
  htmlFor: field.name,
1832
1831
  children: label
1833
1832
  }),
1834
- /* @__PURE__ */ jsx14(FilePicker, {
1833
+ /* @__PURE__ */ jsx13(FilePicker, {
1835
1834
  accept: "image/*",
1836
1835
  canClear: Boolean(field.state.value),
1837
1836
  ...field.state.value instanceof File ? { file: field.state.value } : {},
@@ -1840,10 +1839,10 @@ var ImageField = ({
1840
1839
  invalid,
1841
1840
  locale,
1842
1841
  messages: {
1843
- ...filePickerMessages2,
1842
+ ...filePickerMessages,
1844
1843
  [locale]: {
1845
- ...filePickerMessages2?.[locale.split("-")[0] ?? locale],
1846
- ...filePickerMessages2?.[locale],
1844
+ ...filePickerMessages?.[locale.split("-")[0] ?? locale],
1845
+ ...filePickerMessages?.[locale],
1847
1846
  accepts: labels.accepts,
1848
1847
  deleteFile: labels.delete
1849
1848
  }
@@ -1854,10 +1853,10 @@ var ImageField = ({
1854
1853
  onClear: () => field.handleChange(null),
1855
1854
  title: field.state.value instanceof File ? field.state.value.name : label
1856
1855
  }),
1857
- size.suggestedWidth && size.suggestedHeight && /* @__PURE__ */ jsx14(FieldDescription, {
1856
+ size.suggestedWidth && size.suggestedHeight && /* @__PURE__ */ jsx13(FieldDescription, {
1858
1857
  children: labels.suggestedImageSize(String(size.suggestedWidth), String(size.suggestedHeight))
1859
1858
  }),
1860
- /* @__PURE__ */ jsx14(FieldError, {
1859
+ /* @__PURE__ */ jsx13(FieldError, {
1861
1860
  errors: field.getMeta().errors
1862
1861
  })
1863
1862
  ]
@@ -1865,36 +1864,36 @@ var ImageField = ({
1865
1864
  };
1866
1865
  var BlockNavigation = ({
1867
1866
  locale,
1868
- messages: messages4
1867
+ messages
1869
1868
  }) => {
1870
- const labels = useFormMessages(locale, messages4);
1869
+ const labels = useFormMessages(locale, messages);
1871
1870
  const form = useFormContext();
1872
1871
  const shouldBlock = useStore(form.store, (formState) => formState.isDirty && !(formState.isSubmitting || formState.isSubmitted));
1873
- return /* @__PURE__ */ jsx14(Block, {
1872
+ return /* @__PURE__ */ jsx13(Block, {
1874
1873
  enableBeforeUnload: () => shouldBlock,
1875
1874
  shouldBlockFn: () => shouldBlock,
1876
1875
  withResolver: true,
1877
- children: ({ status, proceed, reset }) => /* @__PURE__ */ jsx14(AlertDialog, {
1876
+ children: ({ status, proceed, reset }) => /* @__PURE__ */ jsx13(AlertDialog, {
1878
1877
  open: status === "blocked",
1879
1878
  children: /* @__PURE__ */ jsxs6(AlertDialogContent, {
1880
1879
  children: [
1881
1880
  /* @__PURE__ */ jsxs6(AlertDialogHeader, {
1882
1881
  children: [
1883
- /* @__PURE__ */ jsx14(AlertDialogTitle, {
1882
+ /* @__PURE__ */ jsx13(AlertDialogTitle, {
1884
1883
  children: labels.blockNavigationTitle
1885
1884
  }),
1886
- /* @__PURE__ */ jsx14(AlertDialogDescription, {
1885
+ /* @__PURE__ */ jsx13(AlertDialogDescription, {
1887
1886
  children: labels.blockNavigationDescription
1888
1887
  })
1889
1888
  ]
1890
1889
  }),
1891
1890
  /* @__PURE__ */ jsxs6(AlertDialogFooter, {
1892
1891
  children: [
1893
- /* @__PURE__ */ jsx14(AlertDialogCancel, {
1892
+ /* @__PURE__ */ jsx13(AlertDialogCancel, {
1894
1893
  onClick: reset,
1895
1894
  children: labels.blockNavigationCancel
1896
1895
  }),
1897
- /* @__PURE__ */ jsx14(AlertDialogAction, {
1896
+ /* @__PURE__ */ jsx13(AlertDialogAction, {
1898
1897
  onClick: proceed,
1899
1898
  children: labels.blockNavigationConfirm
1900
1899
  })
@@ -1908,18 +1907,18 @@ var BlockNavigation = ({
1908
1907
  var SubmitButton = ({
1909
1908
  children,
1910
1909
  locale,
1911
- messages: messages4
1910
+ messages
1912
1911
  }) => {
1913
- const labels = useFormMessages(locale, messages4);
1912
+ const labels = useFormMessages(locale, messages);
1914
1913
  const form = useFormContext();
1915
- return /* @__PURE__ */ jsx14(form.Subscribe, {
1914
+ return /* @__PURE__ */ jsx13(form.Subscribe, {
1916
1915
  selector: (formState) => [formState.isSubmitting],
1917
1916
  children: ([isSubmitting]) => /* @__PURE__ */ jsxs6(Button, {
1918
1917
  type: "submit",
1919
1918
  disabled: isSubmitting,
1920
1919
  className: "self-start",
1921
1920
  children: [
1922
- isSubmitting && /* @__PURE__ */ jsx14(Loader2, {
1921
+ isSubmitting && /* @__PURE__ */ jsx13(Loader2, {
1923
1922
  className: "animate-spin"
1924
1923
  }),
1925
1924
  children ?? labels.submit
@@ -1937,9 +1936,9 @@ var getFormErrorText = (error) => {
1937
1936
  };
1938
1937
  var FormError = () => {
1939
1938
  const form = useFormContext();
1940
- return /* @__PURE__ */ jsx14(form.Subscribe, {
1939
+ return /* @__PURE__ */ jsx13(form.Subscribe, {
1941
1940
  selector: (formState) => getFormErrorText(formState.errorMap.onSubmit),
1942
- children: (error) => error ? /* @__PURE__ */ jsx14(ErrorMessage, {
1941
+ children: (error) => error ? /* @__PURE__ */ jsx13(ErrorMessage, {
1943
1942
  text: error
1944
1943
  }) : null
1945
1944
  });
@@ -1961,16 +1960,16 @@ var FieldWrapper = ({
1961
1960
  localized && editingLocale && locales && /* @__PURE__ */ jsxs6(Badge, {
1962
1961
  variant: "outline",
1963
1962
  children: [
1964
- /* @__PURE__ */ jsx14(Languages, {}),
1963
+ /* @__PURE__ */ jsx13(Languages, {}),
1965
1964
  locales.find((l) => l.value === editingLocale).label
1966
1965
  ]
1967
1966
  })
1968
1967
  ]
1969
1968
  }),
1970
- description && /* @__PURE__ */ jsx14(FieldDescription, {
1969
+ description && /* @__PURE__ */ jsx13(FieldDescription, {
1971
1970
  children: description
1972
1971
  }),
1973
- /* @__PURE__ */ jsx14(FieldGroup, {
1972
+ /* @__PURE__ */ jsx13(FieldGroup, {
1974
1973
  children
1975
1974
  })
1976
1975
  ]
@@ -1978,15 +1977,15 @@ var FieldWrapper = ({
1978
1977
  };
1979
1978
  var RevertButton = ({
1980
1979
  locale,
1981
- messages: messages4,
1980
+ messages,
1982
1981
  original
1983
1982
  }) => {
1984
- const labels = useFormMessages(locale, messages4);
1983
+ const labels = useFormMessages(locale, messages);
1985
1984
  const field = useFieldContext();
1986
1985
  if (field.state.value !== original) {
1987
- return /* @__PURE__ */ jsx14("div", {
1986
+ return /* @__PURE__ */ jsx13("div", {
1988
1987
  className: "flex flex-1 justify-end",
1989
- children: /* @__PURE__ */ jsx14(Button, {
1988
+ children: /* @__PURE__ */ jsx13(Button, {
1990
1989
  variant: "link",
1991
1990
  className: "-mr-4 h-auto py-0",
1992
1991
  onClick: () => field.handleChange(original),
@@ -2018,12 +2017,12 @@ var { useAppForm, withForm, withFieldGroup } = createFormHook({
2018
2017
  }
2019
2018
  });
2020
2019
  export {
2021
- withForm,
2022
- withFieldGroup,
2023
- useAppForm,
2024
- formMessages,
2025
- FieldWrapper,
2026
- FieldError,
2020
+ BlockNavigation,
2027
2021
  ErrorMessage,
2028
- BlockNavigation
2022
+ FieldError,
2023
+ FieldWrapper,
2024
+ formMessages,
2025
+ useAppForm,
2026
+ withFieldGroup,
2027
+ withForm
2029
2028
  };