@krak-stack/registry 0.1.25 → 0.1.27

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 (44) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +5 -0
  3. package/dist/components/ui/data-table.js +212 -207
  4. package/dist/components/ui/effect-form.js +170 -169
  5. package/dist/components/ui/form.js +113 -112
  6. package/dist/components/ui/icon-input.js +43 -40
  7. package/dist/components/ui/pagination.js +2 -2
  8. package/dist/components/ui/sidebar-layout.d.ts +5 -2
  9. package/dist/components/ui/sidebar-layout.js +88 -80
  10. package/dist/components/ui/theme-switcher.js +3 -3
  11. package/dist/components/ui/virtualized-combobox.js +34 -31
  12. package/dist/lib/docs.d.ts +3 -1
  13. package/dist/lib/docs.js +181 -162
  14. package/dist/lib/docs.server.js +62 -36
  15. package/dist/lib/documentation-toolkit.js +63 -37
  16. package/dist/lib/httpapi-cli.js +7 -7
  17. package/dist/lib/httpapi-client.js +3 -3
  18. package/dist/lib/httpapi-helpers.js +11 -11
  19. package/dist/lib/httpapi-mcp.js +2 -2
  20. package/dist/lib/httpapi-toolkit.js +2 -2
  21. package/dist/lib/query.js +7 -7
  22. package/dist/lib/seo.js +2 -2
  23. package/dist/lib/webfetch-toolkit.js +6 -6
  24. package/dist/services/agent/client/index.js +129 -128
  25. package/dist/services/agent/schema.js +5 -5
  26. package/dist/services/file-extraction/index.js +4 -4
  27. package/dist/services/file-extraction/schema.js +2 -2
  28. package/dist/services/health/index.js +9 -9
  29. package/dist/services/notification/channels/ses/index.d.ts +2 -2
  30. package/dist/services/notification/channels/ses/index.js +2 -2
  31. package/dist/services/notification/channels/ses/schema.js +2 -2
  32. package/dist/services/notification/client/index.js +5 -5
  33. package/dist/services/notification/index.js +2 -2
  34. package/dist/services/notification/persistence/drizzle.d.ts +868 -0
  35. package/dist/services/notification/persistence/drizzle.js +2 -2
  36. package/dist/services/notification/persistence/index.d.ts +2 -0
  37. package/dist/services/notification/persistence/index.js +15 -15
  38. package/dist/services/notification/persistence/schema.d.ts +143 -0
  39. package/dist/services/notification/persistence/schema.js +12 -12
  40. package/dist/services/notification/public.js +7 -7
  41. package/dist/services/notification/schema.js +2 -2
  42. package/dist/services/s3/index.js +2 -2
  43. package/dist/services/s3/schema.js +2 -2
  44. package/package.json +2 -2
@@ -1116,11 +1116,12 @@ function Label({ className, ...props }) {
1116
1116
 
1117
1117
  // ../../src/components/ui/separator.tsx
1118
1118
  import { Separator as SeparatorPrimitive } from "@base-ui/react/separator";
1119
+ import { jsx as jsx8 } from "react/jsx-runtime";
1119
1120
 
1120
1121
  // ../../src/components/ui/field.tsx
1121
- import { jsx as jsx8, jsxs as jsxs3 } from "react/jsx-runtime";
1122
+ import { jsx as jsx9, jsxs as jsxs3 } from "react/jsx-runtime";
1122
1123
  function FieldSet({ className, ...props }) {
1123
- return /* @__PURE__ */ jsx8("fieldset", {
1124
+ return /* @__PURE__ */ jsx9("fieldset", {
1124
1125
  "data-slot": "field-set",
1125
1126
  className: cn("flex flex-col gap-6 has-[>[data-slot=checkbox-group]]:gap-3 has-[>[data-slot=radio-group]]:gap-3", className),
1126
1127
  ...props
@@ -1131,7 +1132,7 @@ function FieldLegend({
1131
1132
  variant = "legend",
1132
1133
  ...props
1133
1134
  }) {
1134
- return /* @__PURE__ */ jsx8("legend", {
1135
+ return /* @__PURE__ */ jsx9("legend", {
1135
1136
  "data-slot": "field-legend",
1136
1137
  "data-variant": variant,
1137
1138
  className: cn("mb-3 font-medium data-[variant=label]:text-sm data-[variant=legend]:text-base", className),
@@ -1139,7 +1140,7 @@ function FieldLegend({
1139
1140
  });
1140
1141
  }
1141
1142
  function FieldGroup({ className, ...props }) {
1142
- return /* @__PURE__ */ jsx8("div", {
1143
+ return /* @__PURE__ */ jsx9("div", {
1143
1144
  "data-slot": "field-group",
1144
1145
  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),
1145
1146
  ...props
@@ -1162,7 +1163,7 @@ function Field({
1162
1163
  orientation = "vertical",
1163
1164
  ...props
1164
1165
  }) {
1165
- return /* @__PURE__ */ jsx8("div", {
1166
+ return /* @__PURE__ */ jsx9("div", {
1166
1167
  role: "group",
1167
1168
  "data-slot": "field",
1168
1169
  "data-orientation": orientation,
@@ -1174,14 +1175,14 @@ function FieldLabel({
1174
1175
  className,
1175
1176
  ...props
1176
1177
  }) {
1177
- return /* @__PURE__ */ jsx8(Label, {
1178
+ return /* @__PURE__ */ jsx9(Label, {
1178
1179
  "data-slot": "field-label",
1179
1180
  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),
1180
1181
  ...props
1181
1182
  });
1182
1183
  }
1183
1184
  function FieldDescription({ className, ...props }) {
1184
- return /* @__PURE__ */ jsx8("p", {
1185
+ return /* @__PURE__ */ jsx9("p", {
1185
1186
  "data-slot": "field-description",
1186
1187
  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),
1187
1188
  ...props
@@ -1191,18 +1192,18 @@ function FieldDescription({ className, ...props }) {
1191
1192
  // ../../src/components/ui/select.tsx
1192
1193
  import { Select as SelectPrimitive } from "@base-ui/react/select";
1193
1194
  import { ChevronDownIcon, CheckIcon as CheckIcon2, ChevronUpIcon } from "lucide-react";
1194
- import { jsx as jsx9, jsxs as jsxs4 } from "react/jsx-runtime";
1195
+ import { jsx as jsx10, jsxs as jsxs4 } from "react/jsx-runtime";
1195
1196
  "use client";
1196
1197
  var Select = SelectPrimitive.Root;
1197
1198
  function SelectGroup({ className, ...props }) {
1198
- return /* @__PURE__ */ jsx9(SelectPrimitive.Group, {
1199
+ return /* @__PURE__ */ jsx10(SelectPrimitive.Group, {
1199
1200
  "data-slot": "select-group",
1200
1201
  className: cn("scroll-my-1 p-1", className),
1201
1202
  ...props
1202
1203
  });
1203
1204
  }
1204
1205
  function SelectValue({ className, ...props }) {
1205
- return /* @__PURE__ */ jsx9(SelectPrimitive.Value, {
1206
+ return /* @__PURE__ */ jsx10(SelectPrimitive.Value, {
1206
1207
  "data-slot": "select-value",
1207
1208
  className: cn("flex flex-1 text-left", className),
1208
1209
  ...props
@@ -1221,8 +1222,8 @@ function SelectTrigger({
1221
1222
  ...props,
1222
1223
  children: [
1223
1224
  children,
1224
- /* @__PURE__ */ jsx9(SelectPrimitive.Icon, {
1225
- render: /* @__PURE__ */ jsx9(ChevronDownIcon, {
1225
+ /* @__PURE__ */ jsx10(SelectPrimitive.Icon, {
1226
+ render: /* @__PURE__ */ jsx10(ChevronDownIcon, {
1226
1227
  className: "text-muted-foreground pointer-events-none size-4"
1227
1228
  })
1228
1229
  })
@@ -1239,8 +1240,8 @@ function SelectContent({
1239
1240
  alignItemWithTrigger = true,
1240
1241
  ...props
1241
1242
  }) {
1242
- return /* @__PURE__ */ jsx9(SelectPrimitive.Portal, {
1243
- children: /* @__PURE__ */ jsx9(SelectPrimitive.Positioner, {
1243
+ return /* @__PURE__ */ jsx10(SelectPrimitive.Portal, {
1244
+ children: /* @__PURE__ */ jsx10(SelectPrimitive.Positioner, {
1244
1245
  side,
1245
1246
  sideOffset,
1246
1247
  align,
@@ -1253,11 +1254,11 @@ function SelectContent({
1253
1254
  className: cn("relative isolate z-50 max-h-(--available-height) w-(--anchor-width) min-w-36 origin-(--transform-origin) overflow-x-hidden overflow-y-auto rounded-md bg-popover text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-[align-trigger=true]:animate-none data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-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-out-95", className),
1254
1255
  ...props,
1255
1256
  children: [
1256
- /* @__PURE__ */ jsx9(SelectScrollUpButton, {}),
1257
- /* @__PURE__ */ jsx9(SelectPrimitive.List, {
1257
+ /* @__PURE__ */ jsx10(SelectScrollUpButton, {}),
1258
+ /* @__PURE__ */ jsx10(SelectPrimitive.List, {
1258
1259
  children
1259
1260
  }),
1260
- /* @__PURE__ */ jsx9(SelectScrollDownButton, {})
1261
+ /* @__PURE__ */ jsx10(SelectScrollDownButton, {})
1261
1262
  ]
1262
1263
  })
1263
1264
  })
@@ -1273,15 +1274,15 @@ function SelectItem({
1273
1274
  className: cn("relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2", className),
1274
1275
  ...props,
1275
1276
  children: [
1276
- /* @__PURE__ */ jsx9(SelectPrimitive.ItemText, {
1277
+ /* @__PURE__ */ jsx10(SelectPrimitive.ItemText, {
1277
1278
  className: "flex flex-1 shrink-0 gap-2 whitespace-nowrap",
1278
1279
  children
1279
1280
  }),
1280
- /* @__PURE__ */ jsx9(SelectPrimitive.ItemIndicator, {
1281
- render: /* @__PURE__ */ jsx9("span", {
1281
+ /* @__PURE__ */ jsx10(SelectPrimitive.ItemIndicator, {
1282
+ render: /* @__PURE__ */ jsx10("span", {
1282
1283
  className: "pointer-events-none absolute right-2 flex size-4 items-center justify-center"
1283
1284
  }),
1284
- children: /* @__PURE__ */ jsx9(CheckIcon2, {
1285
+ children: /* @__PURE__ */ jsx10(CheckIcon2, {
1285
1286
  className: "pointer-events-none"
1286
1287
  })
1287
1288
  })
@@ -1292,29 +1293,29 @@ function SelectScrollUpButton({
1292
1293
  className,
1293
1294
  ...props
1294
1295
  }) {
1295
- return /* @__PURE__ */ jsx9(SelectPrimitive.ScrollUpArrow, {
1296
+ return /* @__PURE__ */ jsx10(SelectPrimitive.ScrollUpArrow, {
1296
1297
  "data-slot": "select-scroll-up-button",
1297
1298
  className: cn("top-0 z-10 flex w-full cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4", className),
1298
1299
  ...props,
1299
- children: /* @__PURE__ */ jsx9(ChevronUpIcon, {})
1300
+ children: /* @__PURE__ */ jsx10(ChevronUpIcon, {})
1300
1301
  });
1301
1302
  }
1302
1303
  function SelectScrollDownButton({
1303
1304
  className,
1304
1305
  ...props
1305
1306
  }) {
1306
- return /* @__PURE__ */ jsx9(SelectPrimitive.ScrollDownArrow, {
1307
+ return /* @__PURE__ */ jsx10(SelectPrimitive.ScrollDownArrow, {
1307
1308
  "data-slot": "select-scroll-down-button",
1308
1309
  className: cn("bottom-0 z-10 flex w-full cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4", className),
1309
1310
  ...props,
1310
- children: /* @__PURE__ */ jsx9(ChevronDownIcon, {})
1311
+ children: /* @__PURE__ */ jsx10(ChevronDownIcon, {})
1311
1312
  });
1312
1313
  }
1313
1314
 
1314
1315
  // ../../src/components/ui/textarea.tsx
1315
- import { jsx as jsx10 } from "react/jsx-runtime";
1316
+ import { jsx as jsx11 } from "react/jsx-runtime";
1316
1317
  function Textarea({ className, ...props }) {
1317
- return /* @__PURE__ */ jsx10("textarea", {
1318
+ return /* @__PURE__ */ jsx11("textarea", {
1318
1319
  "data-slot": "textarea",
1319
1320
  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),
1320
1321
  ...props
@@ -1334,9 +1335,9 @@ import {
1334
1335
 
1335
1336
  // ../../src/components/ui/input-group.tsx
1336
1337
  import { cva as cva5 } from "class-variance-authority";
1337
- import { jsx as jsx11 } from "react/jsx-runtime";
1338
+ import { jsx as jsx12 } from "react/jsx-runtime";
1338
1339
  function InputGroup({ className, ...props }) {
1339
- return /* @__PURE__ */ jsx11("div", {
1340
+ return /* @__PURE__ */ jsx12("div", {
1340
1341
  "data-slot": "input-group",
1341
1342
  role: "group",
1342
1343
  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),
@@ -1369,7 +1370,7 @@ function InputGroupInput({
1369
1370
  className,
1370
1371
  ...props
1371
1372
  }) {
1372
- return /* @__PURE__ */ jsx11(Input, {
1373
+ return /* @__PURE__ */ jsx12(Input, {
1373
1374
  "data-slot": "input-group-control",
1374
1375
  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),
1375
1376
  ...props
@@ -1377,7 +1378,7 @@ function InputGroupInput({
1377
1378
  }
1378
1379
 
1379
1380
  // ../../src/components/ui/virtualized-combobox.tsx
1380
- import { jsx as jsx12, jsxs as jsxs5 } from "react/jsx-runtime";
1381
+ import { jsx as jsx13, jsxs as jsxs5 } from "react/jsx-runtime";
1381
1382
  "use client";
1382
1383
  var messages2 = {
1383
1384
  en: {
@@ -1453,19 +1454,19 @@ var VirtualizedComboboxList = ({
1453
1454
  virtualizer.measure();
1454
1455
  }, [virtualizer]);
1455
1456
  if (filteredItems.length === 0) {
1456
- return /* @__PURE__ */ jsx12("div", {
1457
+ return /* @__PURE__ */ jsx13("div", {
1457
1458
  className: "text-muted-foreground py-6 text-center text-sm",
1458
1459
  children: emptyLabel
1459
1460
  });
1460
1461
  }
1461
- return /* @__PURE__ */ jsx12(ComboboxPrimitive.List, {
1462
+ return /* @__PURE__ */ jsx13(ComboboxPrimitive.List, {
1462
1463
  className: "scroll-py-1 overflow-auto overscroll-contain p-1",
1463
1464
  ref: handleScrollElementRef,
1464
1465
  style: {
1465
1466
  height: Math.min(virtualizer.getTotalSize() + 8, 288),
1466
1467
  maxHeight: "var(--available-height)"
1467
1468
  },
1468
- children: /* @__PURE__ */ jsx12("div", {
1469
+ children: /* @__PURE__ */ jsx13("div", {
1469
1470
  className: "relative w-full",
1470
1471
  role: "presentation",
1471
1472
  style: { height: virtualizer.getTotalSize() },
@@ -1478,9 +1479,9 @@ var VirtualizedComboboxList = ({
1478
1479
  transform: `translateY(${virtualItem.start}px)`
1479
1480
  };
1480
1481
  if (entry.kind === "group") {
1481
- return /* @__PURE__ */ jsx12(ComboboxPrimitive.Group, {
1482
+ return /* @__PURE__ */ jsx13(ComboboxPrimitive.Group, {
1482
1483
  className: "contents",
1483
- children: /* @__PURE__ */ jsx12(ComboboxPrimitive.GroupLabel, {
1484
+ children: /* @__PURE__ */ jsx13(ComboboxPrimitive.GroupLabel, {
1484
1485
  className: "text-muted-foreground absolute top-0 left-0 w-full px-2 pt-3 pb-1 text-xs",
1485
1486
  "data-index": virtualItem.index,
1486
1487
  ref: virtualizer.measureElement,
@@ -1499,13 +1500,13 @@ var VirtualizedComboboxList = ({
1499
1500
  style,
1500
1501
  value: entry.item,
1501
1502
  children: [
1502
- renderItem?.(entry.item) ?? /* @__PURE__ */ jsx12("span", {
1503
+ renderItem?.(entry.item) ?? /* @__PURE__ */ jsx13("span", {
1503
1504
  className: "min-w-0 truncate",
1504
1505
  children: entry.item.label
1505
1506
  }),
1506
- /* @__PURE__ */ jsx12(ComboboxPrimitive.ItemIndicator, {
1507
+ /* @__PURE__ */ jsx13(ComboboxPrimitive.ItemIndicator, {
1507
1508
  className: "absolute right-2 flex size-4 items-center justify-center",
1508
- children: /* @__PURE__ */ jsx12(Check, {})
1509
+ children: /* @__PURE__ */ jsx13(Check, {})
1509
1510
  })
1510
1511
  ]
1511
1512
  }, entry.item.value);
@@ -1524,8 +1525,8 @@ var VirtualizedComboboxContent = ({
1524
1525
  virtualizerRef
1525
1526
  }) => {
1526
1527
  const labels = virtualizedComboboxMessages(messageOverrides);
1527
- return /* @__PURE__ */ jsx12(ComboboxPrimitive.Portal, {
1528
- children: /* @__PURE__ */ jsx12(ComboboxPrimitive.Positioner, {
1528
+ return /* @__PURE__ */ jsx13(ComboboxPrimitive.Portal, {
1529
+ children: /* @__PURE__ */ jsx13(ComboboxPrimitive.Positioner, {
1529
1530
  align: "start",
1530
1531
  className: "isolate z-50",
1531
1532
  side: "bottom",
@@ -1533,17 +1534,17 @@ var VirtualizedComboboxContent = ({
1533
1534
  children: /* @__PURE__ */ jsxs5(ComboboxPrimitive.Popup, {
1534
1535
  className: cn("relative max-h-(--available-height) w-(--anchor-width) max-w-(--available-width) min-w-0 origin-(--transform-origin) 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),
1535
1536
  children: [
1536
- /* @__PURE__ */ jsx12("div", {
1537
+ /* @__PURE__ */ jsx13("div", {
1537
1538
  className: "min-w-0 p-1 pb-0",
1538
- children: /* @__PURE__ */ jsx12(InputGroup, {
1539
+ children: /* @__PURE__ */ jsx13(InputGroup, {
1539
1540
  className: "border-input/30 bg-input/30 h-8 w-full min-w-0 shadow-none",
1540
- children: /* @__PURE__ */ jsx12(ComboboxPrimitive.Input, {
1541
+ children: /* @__PURE__ */ jsx13(ComboboxPrimitive.Input, {
1541
1542
  placeholder: labels.search,
1542
- render: /* @__PURE__ */ jsx12(InputGroupInput, {})
1543
+ render: /* @__PURE__ */ jsx13(InputGroupInput, {})
1543
1544
  })
1544
1545
  })
1545
1546
  }),
1546
- /* @__PURE__ */ jsx12(VirtualizedComboboxList, {
1547
+ /* @__PURE__ */ jsx13(VirtualizedComboboxList, {
1547
1548
  emptyLabel,
1548
1549
  groupSelections,
1549
1550
  itemIndexRef,
@@ -1566,20 +1567,20 @@ var defaultTrigger = (ariaLabel, ariaInvalid, disabled, label, triggerId) => /*
1566
1567
  type: "button",
1567
1568
  variant: "outline",
1568
1569
  children: [
1569
- /* @__PURE__ */ jsx12("span", {
1570
+ /* @__PURE__ */ jsx13("span", {
1570
1571
  className: "min-w-0 flex-1 truncate pr-7 text-left",
1571
1572
  children: label
1572
1573
  }),
1573
- /* @__PURE__ */ jsx12(ChevronsUpDown, {
1574
+ /* @__PURE__ */ jsx13(ChevronsUpDown, {
1574
1575
  className: "text-muted-foreground shrink-0 opacity-70"
1575
1576
  })
1576
1577
  ]
1577
1578
  });
1578
- var defaultClear = (label) => /* @__PURE__ */ jsx12(ComboboxPrimitive.Clear, {
1579
+ var defaultClear = (label) => /* @__PURE__ */ jsx13(ComboboxPrimitive.Clear, {
1579
1580
  "aria-label": label,
1580
1581
  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",
1581
1582
  type: "button",
1582
- children: /* @__PURE__ */ jsx12(X, {
1583
+ children: /* @__PURE__ */ jsx13(X, {
1583
1584
  className: "size-3.5"
1584
1585
  })
1585
1586
  });
@@ -1618,13 +1619,13 @@ var VirtualizedComboboxSingle = (props) => {
1618
1619
  /* @__PURE__ */ jsxs5("div", {
1619
1620
  className: "relative",
1620
1621
  children: [
1621
- /* @__PURE__ */ jsx12(ComboboxPrimitive.Trigger, {
1622
+ /* @__PURE__ */ jsx13(ComboboxPrimitive.Trigger, {
1622
1623
  render: props.trigger ?? defaultTrigger(props.ariaLabel, props.ariaInvalid, props.disabled, selectedLabel(props.value, props.placeholder), props.triggerId)
1623
1624
  }),
1624
1625
  props.trigger ? null : defaultClear(labels.clear)
1625
1626
  ]
1626
1627
  }),
1627
- /* @__PURE__ */ jsx12(VirtualizedComboboxContent, {
1628
+ /* @__PURE__ */ jsx13(VirtualizedComboboxContent, {
1628
1629
  ...props,
1629
1630
  groupSelections: false,
1630
1631
  itemIndexRef,
@@ -1660,13 +1661,13 @@ var VirtualizedComboboxMultiple = (props) => {
1660
1661
  /* @__PURE__ */ jsxs5("div", {
1661
1662
  className: "relative",
1662
1663
  children: [
1663
- /* @__PURE__ */ jsx12(ComboboxPrimitive.Trigger, {
1664
+ /* @__PURE__ */ jsx13(ComboboxPrimitive.Trigger, {
1664
1665
  render: props.trigger ?? defaultTrigger(props.ariaLabel, props.ariaInvalid, props.disabled, selectedLabel(props.value, props.placeholder), props.triggerId)
1665
1666
  }),
1666
1667
  props.trigger ? null : defaultClear(labels.clear)
1667
1668
  ]
1668
1669
  }),
1669
- /* @__PURE__ */ jsx12(VirtualizedComboboxContent, {
1670
+ /* @__PURE__ */ jsx13(VirtualizedComboboxContent, {
1670
1671
  ...props,
1671
1672
  groupSelections: true,
1672
1673
  itemIndexRef,
@@ -1677,15 +1678,15 @@ var VirtualizedComboboxMultiple = (props) => {
1677
1678
  });
1678
1679
  };
1679
1680
  function VirtualizedCombobox(props) {
1680
- return props.multiple ? /* @__PURE__ */ jsx12(VirtualizedComboboxMultiple, {
1681
+ return props.multiple ? /* @__PURE__ */ jsx13(VirtualizedComboboxMultiple, {
1681
1682
  ...props
1682
- }) : /* @__PURE__ */ jsx12(VirtualizedComboboxSingle, {
1683
+ }) : /* @__PURE__ */ jsx13(VirtualizedComboboxSingle, {
1683
1684
  ...props
1684
1685
  });
1685
1686
  }
1686
1687
 
1687
1688
  // ../../src/components/ui/effect-form.tsx
1688
- import { jsx as jsx13, jsxs as jsxs6 } from "react/jsx-runtime";
1689
+ import { jsx as jsx14, jsxs as jsxs6 } from "react/jsx-runtime";
1689
1690
  var messages3 = {
1690
1691
  en: {
1691
1692
  add: "Add",
@@ -1746,21 +1747,21 @@ var FieldWrapper = ({
1746
1747
  localized && editingLocale && locales2 && /* @__PURE__ */ jsxs6(Badge, {
1747
1748
  variant: "outline",
1748
1749
  children: [
1749
- /* @__PURE__ */ jsx13(Languages, {}),
1750
+ /* @__PURE__ */ jsx14(Languages, {}),
1750
1751
  locales2.find(({ value }) => value === editingLocale)?.label
1751
1752
  ]
1752
1753
  })
1753
1754
  ]
1754
1755
  }),
1755
- description && /* @__PURE__ */ jsx13(FieldDescription, {
1756
+ description && /* @__PURE__ */ jsx14(FieldDescription, {
1756
1757
  children: description
1757
1758
  }),
1758
- /* @__PURE__ */ jsx13(FieldGroup, {
1759
+ /* @__PURE__ */ jsx14(FieldGroup, {
1759
1760
  children
1760
1761
  })
1761
1762
  ]
1762
1763
  });
1763
- var ErrorMessage = ({ text }) => /* @__PURE__ */ jsx13("em", {
1764
+ var ErrorMessage = ({ text }) => /* @__PURE__ */ jsx14("em", {
1764
1765
  role: "alert",
1765
1766
  className: "text-destructive text-sm",
1766
1767
  children: text
@@ -1769,7 +1770,7 @@ var SubmitError = ({
1769
1770
  result
1770
1771
  }) => {
1771
1772
  const message = AsyncResult.isFailure(result) ? Schema2.isSchemaError(Cause.squash(result.cause)) ? undefined : getCauseErrorMessage(result.cause) : undefined;
1772
- return message ? /* @__PURE__ */ jsx13(ErrorMessage, {
1773
+ return message ? /* @__PURE__ */ jsx14(ErrorMessage, {
1773
1774
  text: message
1774
1775
  }) : null;
1775
1776
  };
@@ -1793,7 +1794,7 @@ var SubmitButton = ({
1793
1794
  submit();
1794
1795
  },
1795
1796
  children: [
1796
- submitResult.waiting && /* @__PURE__ */ jsx13(Loader2, {
1797
+ submitResult.waiting && /* @__PURE__ */ jsx14(Loader2, {
1797
1798
  "data-icon": "inline-start",
1798
1799
  className: "animate-spin"
1799
1800
  }),
@@ -1806,7 +1807,7 @@ var FieldError = ({
1806
1807
  message
1807
1808
  }) => Option.match(error, {
1808
1809
  onNone: () => null,
1809
- onSome: (errorMessage) => /* @__PURE__ */ jsx13(ErrorMessage, {
1810
+ onSome: (errorMessage) => /* @__PURE__ */ jsx14(ErrorMessage, {
1810
1811
  text: message ?? errorMessage
1811
1812
  })
1812
1813
  });
@@ -1821,14 +1822,14 @@ var TextField = ({
1821
1822
  /* @__PURE__ */ jsxs6("div", {
1822
1823
  className: "flex w-full items-center gap-2",
1823
1824
  children: [
1824
- /* @__PURE__ */ jsx13(FieldLabel, {
1825
+ /* @__PURE__ */ jsx14(FieldLabel, {
1825
1826
  htmlFor: field.path,
1826
1827
  children: label
1827
1828
  }),
1828
1829
  children
1829
1830
  ]
1830
1831
  }),
1831
- /* @__PURE__ */ jsx13(Input, {
1832
+ /* @__PURE__ */ jsx14(Input, {
1832
1833
  ...inputProps,
1833
1834
  id: field.path,
1834
1835
  name: field.path,
@@ -1837,10 +1838,10 @@ var TextField = ({
1837
1838
  onChange: (event) => field.onChange(event.target.value),
1838
1839
  "aria-invalid": Option.isSome(field.error)
1839
1840
  }),
1840
- description && /* @__PURE__ */ jsx13(FieldDescription, {
1841
+ description && /* @__PURE__ */ jsx14(FieldDescription, {
1841
1842
  children: description
1842
1843
  }),
1843
- /* @__PURE__ */ jsx13(FieldError, {
1844
+ /* @__PURE__ */ jsx14(FieldError, {
1844
1845
  error: field.error,
1845
1846
  message: errorMessage
1846
1847
  })
@@ -1850,7 +1851,7 @@ var TextField = ({
1850
1851
  var NameField = ({
1851
1852
  field,
1852
1853
  props
1853
- }) => /* @__PURE__ */ jsx13(TextField, {
1854
+ }) => /* @__PURE__ */ jsx14(TextField, {
1854
1855
  field,
1855
1856
  props: {
1856
1857
  ...props,
@@ -1868,14 +1869,14 @@ var TextAreaField = ({ field, props }) => {
1868
1869
  /* @__PURE__ */ jsxs6("div", {
1869
1870
  className: "flex w-full items-center gap-2",
1870
1871
  children: [
1871
- /* @__PURE__ */ jsx13(FieldLabel, {
1872
+ /* @__PURE__ */ jsx14(FieldLabel, {
1872
1873
  htmlFor: field.path,
1873
1874
  children: label
1874
1875
  }),
1875
1876
  children
1876
1877
  ]
1877
1878
  }),
1878
- /* @__PURE__ */ jsx13(Textarea, {
1879
+ /* @__PURE__ */ jsx14(Textarea, {
1879
1880
  ...nativeTextareaProps,
1880
1881
  id: field.path,
1881
1882
  name: field.path,
@@ -1884,16 +1885,16 @@ var TextAreaField = ({ field, props }) => {
1884
1885
  onChange: (event) => field.onChange(event.target.value),
1885
1886
  "aria-invalid": Option.isSome(field.error)
1886
1887
  }),
1887
- description && /* @__PURE__ */ jsx13(FieldDescription, {
1888
+ description && /* @__PURE__ */ jsx14(FieldDescription, {
1888
1889
  children: description
1889
1890
  }),
1890
- /* @__PURE__ */ jsx13(FieldError, {
1891
+ /* @__PURE__ */ jsx14(FieldError, {
1891
1892
  error: field.error
1892
1893
  })
1893
1894
  ]
1894
1895
  });
1895
1896
  };
1896
- var DescriptionField = ({ field, props }) => /* @__PURE__ */ jsx13(TextAreaField, {
1897
+ var DescriptionField = ({ field, props }) => /* @__PURE__ */ jsx14(TextAreaField, {
1897
1898
  field,
1898
1899
  props: { ...props, label: effectFormMessages().description }
1899
1900
  });
@@ -1902,11 +1903,11 @@ var FileField = ({ field, props }) => {
1902
1903
  return /* @__PURE__ */ jsxs6(Field, {
1903
1904
  "data-invalid": invalid,
1904
1905
  children: [
1905
- /* @__PURE__ */ jsx13(FieldLabel, {
1906
+ /* @__PURE__ */ jsx14(FieldLabel, {
1906
1907
  htmlFor: field.path,
1907
1908
  children: props.label
1908
1909
  }),
1909
- /* @__PURE__ */ jsx13(FilePicker, {
1910
+ /* @__PURE__ */ jsx14(FilePicker, {
1910
1911
  accept: props.accept ?? "",
1911
1912
  canClear: field.value instanceof File,
1912
1913
  ...field.value ? { file: field.value } : {},
@@ -1925,10 +1926,10 @@ var FileField = ({ field, props }) => {
1925
1926
  ...props.required === undefined ? {} : { required: props.required },
1926
1927
  title: field.value?.name ?? props.label
1927
1928
  }),
1928
- props.description && /* @__PURE__ */ jsx13(FieldDescription, {
1929
+ props.description && /* @__PURE__ */ jsx14(FieldDescription, {
1929
1930
  children: props.description
1930
1931
  }),
1931
- /* @__PURE__ */ jsx13(FieldError, {
1932
+ /* @__PURE__ */ jsx14(FieldError, {
1932
1933
  error: field.error
1933
1934
  })
1934
1935
  ]
@@ -1944,14 +1945,14 @@ var NullableTextAreaField = ({ field, props }) => {
1944
1945
  /* @__PURE__ */ jsxs6("div", {
1945
1946
  className: "flex w-full items-center gap-2",
1946
1947
  children: [
1947
- /* @__PURE__ */ jsx13(FieldLabel, {
1948
+ /* @__PURE__ */ jsx14(FieldLabel, {
1948
1949
  htmlFor: field.path,
1949
1950
  children: label
1950
1951
  }),
1951
1952
  children
1952
1953
  ]
1953
1954
  }),
1954
- /* @__PURE__ */ jsx13(Textarea, {
1955
+ /* @__PURE__ */ jsx14(Textarea, {
1955
1956
  ...nativeTextareaProps,
1956
1957
  id: field.path,
1957
1958
  name: field.path,
@@ -1960,10 +1961,10 @@ var NullableTextAreaField = ({ field, props }) => {
1960
1961
  onChange: (event) => field.onChange(event.target.value),
1961
1962
  "aria-invalid": Option.isSome(field.error)
1962
1963
  }),
1963
- description && /* @__PURE__ */ jsx13(FieldDescription, {
1964
+ description && /* @__PURE__ */ jsx14(FieldDescription, {
1964
1965
  children: description
1965
1966
  }),
1966
- /* @__PURE__ */ jsx13(FieldError, {
1967
+ /* @__PURE__ */ jsx14(FieldError, {
1967
1968
  error: field.error
1968
1969
  })
1969
1970
  ]
@@ -1978,7 +1979,7 @@ var CheckboxField = ({
1978
1979
  /* @__PURE__ */ jsxs6("div", {
1979
1980
  className: "flex w-full flex-row items-center gap-2",
1980
1981
  children: [
1981
- /* @__PURE__ */ jsx13(Checkbox, {
1982
+ /* @__PURE__ */ jsx14(Checkbox, {
1982
1983
  id: field.path,
1983
1984
  name: field.path,
1984
1985
  checked: field.value,
@@ -1986,17 +1987,17 @@ var CheckboxField = ({
1986
1987
  onCheckedChange: field.onChange,
1987
1988
  "aria-invalid": Option.isSome(field.error)
1988
1989
  }),
1989
- /* @__PURE__ */ jsx13(FieldLabel, {
1990
+ /* @__PURE__ */ jsx14(FieldLabel, {
1990
1991
  htmlFor: field.path,
1991
1992
  children: props.label
1992
1993
  }),
1993
1994
  props.children
1994
1995
  ]
1995
1996
  }),
1996
- props.description && /* @__PURE__ */ jsx13(FieldDescription, {
1997
+ props.description && /* @__PURE__ */ jsx14(FieldDescription, {
1997
1998
  children: props.description
1998
1999
  }),
1999
- /* @__PURE__ */ jsx13(FieldError, {
2000
+ /* @__PURE__ */ jsx14(FieldError, {
2000
2001
  error: field.error
2001
2002
  })
2002
2003
  ]
@@ -2007,7 +2008,7 @@ var SelectField = ({
2007
2008
  }) => /* @__PURE__ */ jsxs6(Field, {
2008
2009
  "data-invalid": Option.isSome(field.error),
2009
2010
  children: [
2010
- /* @__PURE__ */ jsx13(FieldLabel, {
2011
+ /* @__PURE__ */ jsx14(FieldLabel, {
2011
2012
  htmlFor: field.path,
2012
2013
  children: props.label
2013
2014
  }),
@@ -2019,16 +2020,16 @@ var SelectField = ({
2019
2020
  },
2020
2021
  value: field.value,
2021
2022
  children: [
2022
- /* @__PURE__ */ jsx13(SelectTrigger, {
2023
+ /* @__PURE__ */ jsx14(SelectTrigger, {
2023
2024
  id: field.path,
2024
2025
  "aria-invalid": Option.isSome(field.error),
2025
- children: /* @__PURE__ */ jsx13(SelectValue, {
2026
+ children: /* @__PURE__ */ jsx14(SelectValue, {
2026
2027
  placeholder: props.placeholder
2027
2028
  })
2028
2029
  }),
2029
- /* @__PURE__ */ jsx13(SelectContent, {
2030
- children: /* @__PURE__ */ jsx13(SelectGroup, {
2031
- children: props.options.map((option) => /* @__PURE__ */ jsx13(SelectItem, {
2030
+ /* @__PURE__ */ jsx14(SelectContent, {
2031
+ children: /* @__PURE__ */ jsx14(SelectGroup, {
2032
+ children: props.options.map((option) => /* @__PURE__ */ jsx14(SelectItem, {
2032
2033
  value: option.value,
2033
2034
  children: option.label
2034
2035
  }, option.value))
@@ -2036,10 +2037,10 @@ var SelectField = ({
2036
2037
  })
2037
2038
  ]
2038
2039
  }),
2039
- props.description && /* @__PURE__ */ jsx13(FieldDescription, {
2040
+ props.description && /* @__PURE__ */ jsx14(FieldDescription, {
2040
2041
  children: props.description
2041
2042
  }),
2042
- /* @__PURE__ */ jsx13(FieldError, {
2043
+ /* @__PURE__ */ jsx14(FieldError, {
2043
2044
  error: field.error
2044
2045
  })
2045
2046
  ]
@@ -2047,7 +2048,7 @@ var SelectField = ({
2047
2048
  var FolderField = ({
2048
2049
  field,
2049
2050
  props
2050
- }) => /* @__PURE__ */ jsx13(SelectField, {
2051
+ }) => /* @__PURE__ */ jsx14(SelectField, {
2051
2052
  field,
2052
2053
  props: { ...props, label: effectFormMessages().folder }
2053
2054
  });
@@ -2057,7 +2058,7 @@ var MultiSelectField = ({
2057
2058
  }) => /* @__PURE__ */ jsxs6(Field, {
2058
2059
  "data-invalid": Option.isSome(field.error),
2059
2060
  children: [
2060
- /* @__PURE__ */ jsx13(FieldLabel, {
2061
+ /* @__PURE__ */ jsx14(FieldLabel, {
2061
2062
  htmlFor: field.path,
2062
2063
  children: props.label
2063
2064
  }),
@@ -2067,17 +2068,17 @@ var MultiSelectField = ({
2067
2068
  multiple: true,
2068
2069
  value: Array.from(field.value),
2069
2070
  children: [
2070
- /* @__PURE__ */ jsx13(SelectTrigger, {
2071
+ /* @__PURE__ */ jsx14(SelectTrigger, {
2071
2072
  className: "gap-1",
2072
2073
  id: field.path,
2073
2074
  "aria-invalid": Option.isSome(field.error),
2074
- children: /* @__PURE__ */ jsx13(SelectValue, {
2075
+ children: /* @__PURE__ */ jsx14(SelectValue, {
2075
2076
  placeholder: props.placeholder
2076
2077
  })
2077
2078
  }),
2078
- /* @__PURE__ */ jsx13(SelectContent, {
2079
- children: /* @__PURE__ */ jsx13(SelectGroup, {
2080
- children: props.options.map((option) => /* @__PURE__ */ jsx13(SelectItem, {
2079
+ /* @__PURE__ */ jsx14(SelectContent, {
2080
+ children: /* @__PURE__ */ jsx14(SelectGroup, {
2081
+ children: props.options.map((option) => /* @__PURE__ */ jsx14(SelectItem, {
2081
2082
  value: option.value,
2082
2083
  children: option.label
2083
2084
  }, option.value))
@@ -2085,10 +2086,10 @@ var MultiSelectField = ({
2085
2086
  })
2086
2087
  ]
2087
2088
  }),
2088
- props.description && /* @__PURE__ */ jsx13(FieldDescription, {
2089
+ props.description && /* @__PURE__ */ jsx14(FieldDescription, {
2089
2090
  children: props.description
2090
2091
  }),
2091
- /* @__PURE__ */ jsx13(FieldError, {
2092
+ /* @__PURE__ */ jsx14(FieldError, {
2092
2093
  error: field.error
2093
2094
  })
2094
2095
  ]
@@ -2099,7 +2100,7 @@ var NullableMultiSelectField = ({
2099
2100
  }) => /* @__PURE__ */ jsxs6(Field, {
2100
2101
  "data-invalid": Option.isSome(field.error),
2101
2102
  children: [
2102
- /* @__PURE__ */ jsx13(FieldLabel, {
2103
+ /* @__PURE__ */ jsx14(FieldLabel, {
2103
2104
  htmlFor: field.path,
2104
2105
  children: props.label
2105
2106
  }),
@@ -2109,17 +2110,17 @@ var NullableMultiSelectField = ({
2109
2110
  multiple: true,
2110
2111
  value: field.value ? Array.from(field.value) : [],
2111
2112
  children: [
2112
- /* @__PURE__ */ jsx13(SelectTrigger, {
2113
+ /* @__PURE__ */ jsx14(SelectTrigger, {
2113
2114
  className: "gap-1",
2114
2115
  id: field.path,
2115
2116
  "aria-invalid": Option.isSome(field.error),
2116
- children: /* @__PURE__ */ jsx13(SelectValue, {
2117
+ children: /* @__PURE__ */ jsx14(SelectValue, {
2117
2118
  placeholder: props.placeholder
2118
2119
  })
2119
2120
  }),
2120
- /* @__PURE__ */ jsx13(SelectContent, {
2121
- children: /* @__PURE__ */ jsx13(SelectGroup, {
2122
- children: props.options.map((option) => /* @__PURE__ */ jsx13(SelectItem, {
2121
+ /* @__PURE__ */ jsx14(SelectContent, {
2122
+ children: /* @__PURE__ */ jsx14(SelectGroup, {
2123
+ children: props.options.map((option) => /* @__PURE__ */ jsx14(SelectItem, {
2123
2124
  value: option.value,
2124
2125
  children: option.label
2125
2126
  }, option.value))
@@ -2127,10 +2128,10 @@ var NullableMultiSelectField = ({
2127
2128
  })
2128
2129
  ]
2129
2130
  }),
2130
- props.description && /* @__PURE__ */ jsx13(FieldDescription, {
2131
+ props.description && /* @__PURE__ */ jsx14(FieldDescription, {
2131
2132
  children: props.description
2132
2133
  }),
2133
- /* @__PURE__ */ jsx13(FieldError, {
2134
+ /* @__PURE__ */ jsx14(FieldError, {
2134
2135
  error: field.error
2135
2136
  })
2136
2137
  ]
@@ -2159,11 +2160,11 @@ var SearchableSelectField = ({
2159
2160
  className: "min-w-0",
2160
2161
  "data-invalid": invalid,
2161
2162
  children: [
2162
- /* @__PURE__ */ jsx13(FieldLabel, {
2163
+ /* @__PURE__ */ jsx14(FieldLabel, {
2163
2164
  htmlFor: field.path,
2164
2165
  children: props.label
2165
2166
  }),
2166
- /* @__PURE__ */ jsx13(VirtualizedCombobox, {
2167
+ /* @__PURE__ */ jsx14(VirtualizedCombobox, {
2167
2168
  ariaInvalid: invalid,
2168
2169
  ariaLabel,
2169
2170
  emptyLabel: props.emptyLabel,
@@ -2178,10 +2179,10 @@ var SearchableSelectField = ({
2178
2179
  triggerId: field.path,
2179
2180
  value: selectedItems
2180
2181
  }),
2181
- props.description && /* @__PURE__ */ jsx13(FieldDescription, {
2182
+ props.description && /* @__PURE__ */ jsx14(FieldDescription, {
2182
2183
  children: props.description
2183
2184
  }),
2184
- /* @__PURE__ */ jsx13(FieldError, {
2185
+ /* @__PURE__ */ jsx14(FieldError, {
2185
2186
  error: field.error
2186
2187
  })
2187
2188
  ]
@@ -2199,11 +2200,11 @@ var SingleSearchableSelectField = ({
2199
2200
  className: "min-w-0",
2200
2201
  "data-invalid": invalid,
2201
2202
  children: [
2202
- /* @__PURE__ */ jsx13(FieldLabel, {
2203
+ /* @__PURE__ */ jsx14(FieldLabel, {
2203
2204
  htmlFor: field.path,
2204
2205
  children: props.label
2205
2206
  }),
2206
- /* @__PURE__ */ jsx13(VirtualizedCombobox, {
2207
+ /* @__PURE__ */ jsx14(VirtualizedCombobox, {
2207
2208
  ariaInvalid: invalid,
2208
2209
  ariaLabel,
2209
2210
  emptyLabel: props.emptyLabel,
@@ -2217,10 +2218,10 @@ var SingleSearchableSelectField = ({
2217
2218
  triggerId: field.path,
2218
2219
  value: selectedItems[0] ?? null
2219
2220
  }),
2220
- props.description && /* @__PURE__ */ jsx13(FieldDescription, {
2221
+ props.description && /* @__PURE__ */ jsx14(FieldDescription, {
2221
2222
  children: props.description
2222
2223
  }),
2223
- /* @__PURE__ */ jsx13(FieldError, {
2224
+ /* @__PURE__ */ jsx14(FieldError, {
2224
2225
  error: field.error
2225
2226
  })
2226
2227
  ]
@@ -2235,13 +2236,13 @@ var NullableKeyValueField = ({
2235
2236
  return /* @__PURE__ */ jsxs6(Field, {
2236
2237
  "data-invalid": Option.isSome(field.error),
2237
2238
  children: [
2238
- /* @__PURE__ */ jsx13(FieldLabel, {
2239
+ /* @__PURE__ */ jsx14(FieldLabel, {
2239
2240
  children: props.label
2240
2241
  }),
2241
2242
  entries.map(([key, value], index) => /* @__PURE__ */ jsxs6("div", {
2242
2243
  className: "flex w-full flex-row items-center gap-2",
2243
2244
  children: [
2244
- /* @__PURE__ */ jsx13(Input, {
2245
+ /* @__PURE__ */ jsx14(Input, {
2245
2246
  id: `${field.path}-${index}-key`,
2246
2247
  name: `${field.path}.${index}.key`,
2247
2248
  type: "text",
@@ -2252,7 +2253,7 @@ var NullableKeyValueField = ({
2252
2253
  onChange: (event) => field.onChange(updateEntry(index, event.target.value, value)),
2253
2254
  "aria-invalid": Option.isSome(field.error)
2254
2255
  }),
2255
- /* @__PURE__ */ jsx13(Input, {
2256
+ /* @__PURE__ */ jsx14(Input, {
2256
2257
  id: `${field.path}-${index}-value`,
2257
2258
  name: `${field.path}.${index}.value`,
2258
2259
  type: "text",
@@ -2268,7 +2269,7 @@ var NullableKeyValueField = ({
2268
2269
  variant: "secondary",
2269
2270
  onClick: () => field.onChange(Object.fromEntries(entries.filter((_, currentIndex) => currentIndex !== index))),
2270
2271
  children: [
2271
- /* @__PURE__ */ jsx13(Trash, {
2272
+ /* @__PURE__ */ jsx14(Trash, {
2272
2273
  "data-icon": "inline-start"
2273
2274
  }),
2274
2275
  effectFormMessages().delete
@@ -2282,16 +2283,16 @@ var NullableKeyValueField = ({
2282
2283
  className: "self-start",
2283
2284
  onClick: () => field.onChange({ ...field.value, "": "" }),
2284
2285
  children: [
2285
- /* @__PURE__ */ jsx13(Plus, {
2286
+ /* @__PURE__ */ jsx14(Plus, {
2286
2287
  "data-icon": "inline-start"
2287
2288
  }),
2288
2289
  effectFormMessages().add
2289
2290
  ]
2290
2291
  }),
2291
- props.description && /* @__PURE__ */ jsx13(FieldDescription, {
2292
+ props.description && /* @__PURE__ */ jsx14(FieldDescription, {
2292
2293
  children: props.description
2293
2294
  }),
2294
- /* @__PURE__ */ jsx13(FieldError, {
2295
+ /* @__PURE__ */ jsx14(FieldError, {
2295
2296
  error: field.error
2296
2297
  })
2297
2298
  ]
@@ -2306,13 +2307,13 @@ var KeyValueField = ({
2306
2307
  return /* @__PURE__ */ jsxs6(Field, {
2307
2308
  "data-invalid": Option.isSome(field.error),
2308
2309
  children: [
2309
- /* @__PURE__ */ jsx13(FieldLabel, {
2310
+ /* @__PURE__ */ jsx14(FieldLabel, {
2310
2311
  children: props.label
2311
2312
  }),
2312
2313
  entries.map(([key, value], index) => /* @__PURE__ */ jsxs6("div", {
2313
2314
  className: "flex w-full flex-row items-center gap-2",
2314
2315
  children: [
2315
- /* @__PURE__ */ jsx13(Input, {
2316
+ /* @__PURE__ */ jsx14(Input, {
2316
2317
  id: `${field.path}-${index}-key`,
2317
2318
  name: `${field.path}.${index}.key`,
2318
2319
  type: "text",
@@ -2323,7 +2324,7 @@ var KeyValueField = ({
2323
2324
  onChange: (event) => field.onChange(updateEntry(index, event.target.value, value)),
2324
2325
  "aria-invalid": Option.isSome(field.error)
2325
2326
  }),
2326
- /* @__PURE__ */ jsx13(Input, {
2327
+ /* @__PURE__ */ jsx14(Input, {
2327
2328
  id: `${field.path}-${index}-value`,
2328
2329
  name: `${field.path}.${index}.value`,
2329
2330
  type: "text",
@@ -2339,7 +2340,7 @@ var KeyValueField = ({
2339
2340
  variant: "secondary",
2340
2341
  onClick: () => field.onChange(Object.fromEntries(entries.filter((_, currentIndex) => currentIndex !== index))),
2341
2342
  children: [
2342
- /* @__PURE__ */ jsx13(Trash, {
2343
+ /* @__PURE__ */ jsx14(Trash, {
2343
2344
  "data-icon": "inline-start"
2344
2345
  }),
2345
2346
  effectFormMessages().delete
@@ -2353,16 +2354,16 @@ var KeyValueField = ({
2353
2354
  className: "self-start",
2354
2355
  onClick: () => field.onChange({ ...field.value, "": "" }),
2355
2356
  children: [
2356
- /* @__PURE__ */ jsx13(Plus, {
2357
+ /* @__PURE__ */ jsx14(Plus, {
2357
2358
  "data-icon": "inline-start"
2358
2359
  }),
2359
2360
  effectFormMessages().add
2360
2361
  ]
2361
2362
  }),
2362
- props.description && /* @__PURE__ */ jsx13(FieldDescription, {
2363
+ props.description && /* @__PURE__ */ jsx14(FieldDescription, {
2363
2364
  children: props.description
2364
2365
  }),
2365
- /* @__PURE__ */ jsx13(FieldError, {
2366
+ /* @__PURE__ */ jsx14(FieldError, {
2366
2367
  error: field.error
2367
2368
  })
2368
2369
  ]
@@ -2371,9 +2372,9 @@ var KeyValueField = ({
2371
2372
  var RevertButton = ({
2372
2373
  field,
2373
2374
  props
2374
- }) => field.value === props.original ? null : /* @__PURE__ */ jsx13("div", {
2375
+ }) => field.value === props.original ? null : /* @__PURE__ */ jsx14("div", {
2375
2376
  className: "flex flex-1 justify-end",
2376
- children: /* @__PURE__ */ jsx13(Button, {
2377
+ children: /* @__PURE__ */ jsx14(Button, {
2377
2378
  type: "button",
2378
2379
  variant: "link",
2379
2380
  className: "-mr-4 h-auto py-0",
@@ -2387,11 +2388,11 @@ var ImageField = ({ field, props }) => {
2387
2388
  return /* @__PURE__ */ jsxs6(Field, {
2388
2389
  "data-invalid": invalid,
2389
2390
  children: [
2390
- /* @__PURE__ */ jsx13(FieldLabel, {
2391
+ /* @__PURE__ */ jsx14(FieldLabel, {
2391
2392
  htmlFor: field.path,
2392
2393
  children: props.label
2393
2394
  }),
2394
- /* @__PURE__ */ jsx13(FilePicker, {
2395
+ /* @__PURE__ */ jsx14(FilePicker, {
2395
2396
  accept: "image/*",
2396
2397
  onBlur: field.onBlur,
2397
2398
  canClear: Boolean(field.value),
@@ -2411,40 +2412,40 @@ var ImageField = ({ field, props }) => {
2411
2412
  onClear: () => field.onChange(null),
2412
2413
  title: field.value instanceof File ? field.value.name : props.label
2413
2414
  }),
2414
- props.size.suggestedWidth && props.size.suggestedHeight ? /* @__PURE__ */ jsx13(FieldDescription, {
2415
+ props.size.suggestedWidth && props.size.suggestedHeight ? /* @__PURE__ */ jsx14(FieldDescription, {
2415
2416
  children: effectFormMessages().suggestedImageSize(String(props.size.suggestedWidth), String(props.size.suggestedHeight))
2416
2417
  }) : null,
2417
- /* @__PURE__ */ jsx13(FieldError, {
2418
+ /* @__PURE__ */ jsx14(FieldError, {
2418
2419
  error: field.error
2419
2420
  })
2420
2421
  ]
2421
2422
  });
2422
2423
  };
2423
- var NavigationBlock = ({ shouldBlock }) => /* @__PURE__ */ jsx13(Block, {
2424
+ var NavigationBlock = ({ shouldBlock }) => /* @__PURE__ */ jsx14(Block, {
2424
2425
  enableBeforeUnload: () => shouldBlock,
2425
2426
  shouldBlockFn: () => shouldBlock,
2426
2427
  withResolver: true,
2427
- children: ({ status, proceed, reset }) => /* @__PURE__ */ jsx13(AlertDialog, {
2428
+ children: ({ status, proceed, reset }) => /* @__PURE__ */ jsx14(AlertDialog, {
2428
2429
  open: status === "blocked",
2429
2430
  children: /* @__PURE__ */ jsxs6(AlertDialogContent, {
2430
2431
  children: [
2431
2432
  /* @__PURE__ */ jsxs6(AlertDialogHeader, {
2432
2433
  children: [
2433
- /* @__PURE__ */ jsx13(AlertDialogTitle, {
2434
+ /* @__PURE__ */ jsx14(AlertDialogTitle, {
2434
2435
  children: effectFormMessages().blockNavigationTitle
2435
2436
  }),
2436
- /* @__PURE__ */ jsx13(AlertDialogDescription, {
2437
+ /* @__PURE__ */ jsx14(AlertDialogDescription, {
2437
2438
  children: effectFormMessages().blockNavigationDescription
2438
2439
  })
2439
2440
  ]
2440
2441
  }),
2441
2442
  /* @__PURE__ */ jsxs6(AlertDialogFooter, {
2442
2443
  children: [
2443
- /* @__PURE__ */ jsx13(AlertDialogCancel, {
2444
+ /* @__PURE__ */ jsx14(AlertDialogCancel, {
2444
2445
  onClick: reset,
2445
2446
  children: effectFormMessages().blockNavigationCancel
2446
2447
  }),
2447
- /* @__PURE__ */ jsx13(AlertDialogAction, {
2448
+ /* @__PURE__ */ jsx14(AlertDialogAction, {
2448
2449
  onClick: proceed,
2449
2450
  children: effectFormMessages().blockNavigationConfirm
2450
2451
  })
@@ -2460,35 +2461,35 @@ var FormBlockNavigation = ({ form }) => {
2460
2461
  const hasChangedSinceSubmit = useAtomValue(form.hasChangedSinceSubmit);
2461
2462
  const lastSubmittedValues = useAtomValue(form.lastSubmittedValues);
2462
2463
  const shouldBlock = !submitResult.waiting && (Option.isNone(lastSubmittedValues) ? isDirty : hasChangedSinceSubmit);
2463
- return /* @__PURE__ */ jsx13(NavigationBlock, {
2464
+ return /* @__PURE__ */ jsx14(NavigationBlock, {
2464
2465
  shouldBlock
2465
2466
  });
2466
2467
  };
2467
- var BlockNavigation = ({ form }) => /* @__PURE__ */ jsx13(FormBlockNavigation, {
2468
+ var BlockNavigation = ({ form }) => /* @__PURE__ */ jsx14(FormBlockNavigation, {
2468
2469
  form
2469
2470
  });
2470
2471
  export {
2471
- BlockNavigation,
2472
- CheckboxField,
2473
- DescriptionField,
2474
- ErrorMessage,
2475
- FieldWrapper,
2476
- FileField,
2477
- FolderField,
2478
- ImageField,
2479
- KeyValueField,
2480
- MultiSelectField,
2481
- NameField,
2482
- NullableKeyValueField,
2483
- NullableMultiSelectField,
2484
- NullableTextAreaField,
2485
- RevertButton,
2486
- SearchableSelectField,
2487
- SelectField,
2488
- SingleSearchableSelectField,
2489
- SubmitButton,
2490
- SubmitError,
2491
- TextAreaField,
2472
+ effectFormMessages,
2492
2473
  TextField,
2493
- effectFormMessages
2474
+ TextAreaField,
2475
+ SubmitError,
2476
+ SubmitButton,
2477
+ SingleSearchableSelectField,
2478
+ SelectField,
2479
+ SearchableSelectField,
2480
+ RevertButton,
2481
+ NullableTextAreaField,
2482
+ NullableMultiSelectField,
2483
+ NullableKeyValueField,
2484
+ NameField,
2485
+ MultiSelectField,
2486
+ KeyValueField,
2487
+ ImageField,
2488
+ FolderField,
2489
+ FileField,
2490
+ FieldWrapper,
2491
+ ErrorMessage,
2492
+ DescriptionField,
2493
+ CheckboxField,
2494
+ BlockNavigation
2494
2495
  };