@krak-stack/registry 0.1.27 → 0.1.28

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