@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
@@ -1206,12 +1206,11 @@ function Label({ className, ...props }) {
1206
1206
 
1207
1207
  // ../../src/components/ui/separator.tsx
1208
1208
  import { Separator as SeparatorPrimitive } from "@base-ui/react/separator";
1209
- import { jsx as jsx9 } from "react/jsx-runtime";
1210
1209
 
1211
1210
  // ../../src/components/ui/field.tsx
1212
- import { jsx as jsx10, jsxs as jsxs4 } from "react/jsx-runtime";
1211
+ import { jsx as jsx9, jsxs as jsxs4 } from "react/jsx-runtime";
1213
1212
  function FieldSet({ className, ...props }) {
1214
- return /* @__PURE__ */ jsx10("fieldset", {
1213
+ return /* @__PURE__ */ jsx9("fieldset", {
1215
1214
  "data-slot": "field-set",
1216
1215
  className: cn("flex flex-col gap-6 has-[>[data-slot=checkbox-group]]:gap-3 has-[>[data-slot=radio-group]]:gap-3", className),
1217
1216
  ...props
@@ -1222,7 +1221,7 @@ function FieldLegend({
1222
1221
  variant = "legend",
1223
1222
  ...props
1224
1223
  }) {
1225
- return /* @__PURE__ */ jsx10("legend", {
1224
+ return /* @__PURE__ */ jsx9("legend", {
1226
1225
  "data-slot": "field-legend",
1227
1226
  "data-variant": variant,
1228
1227
  className: cn("mb-3 font-medium data-[variant=label]:text-sm data-[variant=legend]:text-base", className),
@@ -1230,7 +1229,7 @@ function FieldLegend({
1230
1229
  });
1231
1230
  }
1232
1231
  function FieldGroup({ className, ...props }) {
1233
- return /* @__PURE__ */ jsx10("div", {
1232
+ return /* @__PURE__ */ jsx9("div", {
1234
1233
  "data-slot": "field-group",
1235
1234
  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),
1236
1235
  ...props
@@ -1253,7 +1252,7 @@ function Field({
1253
1252
  orientation = "vertical",
1254
1253
  ...props
1255
1254
  }) {
1256
- return /* @__PURE__ */ jsx10("div", {
1255
+ return /* @__PURE__ */ jsx9("div", {
1257
1256
  role: "group",
1258
1257
  "data-slot": "field",
1259
1258
  "data-orientation": orientation,
@@ -1265,14 +1264,14 @@ function FieldLabel({
1265
1264
  className,
1266
1265
  ...props
1267
1266
  }) {
1268
- return /* @__PURE__ */ jsx10(Label, {
1267
+ return /* @__PURE__ */ jsx9(Label, {
1269
1268
  "data-slot": "field-label",
1270
1269
  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),
1271
1270
  ...props
1272
1271
  });
1273
1272
  }
1274
1273
  function FieldDescription({ className, ...props }) {
1275
- return /* @__PURE__ */ jsx10("p", {
1274
+ return /* @__PURE__ */ jsx9("p", {
1276
1275
  "data-slot": "field-description",
1277
1276
  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),
1278
1277
  ...props
@@ -1280,9 +1279,9 @@ function FieldDescription({ className, ...props }) {
1280
1279
  }
1281
1280
 
1282
1281
  // ../../src/components/ui/textarea.tsx
1283
- import { jsx as jsx11 } from "react/jsx-runtime";
1282
+ import { jsx as jsx10 } from "react/jsx-runtime";
1284
1283
  function Textarea({ className, ...props }) {
1285
- return /* @__PURE__ */ jsx11("textarea", {
1284
+ return /* @__PURE__ */ jsx10("textarea", {
1286
1285
  "data-slot": "textarea",
1287
1286
  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),
1288
1287
  ...props
@@ -1340,9 +1339,9 @@ import {
1340
1339
 
1341
1340
  // ../../src/components/ui/input-group.tsx
1342
1341
  import { cva as cva5 } from "class-variance-authority";
1343
- import { jsx as jsx12 } from "react/jsx-runtime";
1342
+ import { jsx as jsx11 } from "react/jsx-runtime";
1344
1343
  function InputGroup({ className, ...props }) {
1345
- return /* @__PURE__ */ jsx12("div", {
1344
+ return /* @__PURE__ */ jsx11("div", {
1346
1345
  "data-slot": "input-group",
1347
1346
  role: "group",
1348
1347
  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),
@@ -1375,7 +1374,7 @@ function InputGroupInput({
1375
1374
  className,
1376
1375
  ...props
1377
1376
  }) {
1378
- return /* @__PURE__ */ jsx12(Input, {
1377
+ return /* @__PURE__ */ jsx11(Input, {
1379
1378
  "data-slot": "input-group-control",
1380
1379
  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),
1381
1380
  ...props
@@ -1383,7 +1382,7 @@ function InputGroupInput({
1383
1382
  }
1384
1383
 
1385
1384
  // ../../src/components/ui/virtualized-combobox.tsx
1386
- import { jsx as jsx13, jsxs as jsxs5 } from "react/jsx-runtime";
1385
+ import { jsx as jsx12, jsxs as jsxs5 } from "react/jsx-runtime";
1387
1386
  "use client";
1388
1387
  var messages2 = {
1389
1388
  en: {
@@ -1459,19 +1458,19 @@ var VirtualizedComboboxList = ({
1459
1458
  virtualizer.measure();
1460
1459
  }, [virtualizer]);
1461
1460
  if (filteredItems.length === 0) {
1462
- return /* @__PURE__ */ jsx13("div", {
1461
+ return /* @__PURE__ */ jsx12("div", {
1463
1462
  className: "text-muted-foreground py-6 text-center text-sm",
1464
1463
  children: emptyLabel
1465
1464
  });
1466
1465
  }
1467
- return /* @__PURE__ */ jsx13(ComboboxPrimitive.List, {
1466
+ return /* @__PURE__ */ jsx12(ComboboxPrimitive.List, {
1468
1467
  className: "scroll-py-1 overflow-auto overscroll-contain p-1",
1469
1468
  ref: handleScrollElementRef,
1470
1469
  style: {
1471
1470
  height: Math.min(virtualizer.getTotalSize() + 8, 288),
1472
1471
  maxHeight: "var(--available-height)"
1473
1472
  },
1474
- children: /* @__PURE__ */ jsx13("div", {
1473
+ children: /* @__PURE__ */ jsx12("div", {
1475
1474
  className: "relative w-full",
1476
1475
  role: "presentation",
1477
1476
  style: { height: virtualizer.getTotalSize() },
@@ -1484,9 +1483,9 @@ var VirtualizedComboboxList = ({
1484
1483
  transform: `translateY(${virtualItem.start}px)`
1485
1484
  };
1486
1485
  if (entry.kind === "group") {
1487
- return /* @__PURE__ */ jsx13(ComboboxPrimitive.Group, {
1486
+ return /* @__PURE__ */ jsx12(ComboboxPrimitive.Group, {
1488
1487
  className: "contents",
1489
- children: /* @__PURE__ */ jsx13(ComboboxPrimitive.GroupLabel, {
1488
+ children: /* @__PURE__ */ jsx12(ComboboxPrimitive.GroupLabel, {
1490
1489
  className: "text-muted-foreground absolute top-0 left-0 w-full px-2 pt-3 pb-1 text-xs",
1491
1490
  "data-index": virtualItem.index,
1492
1491
  ref: virtualizer.measureElement,
@@ -1505,13 +1504,13 @@ var VirtualizedComboboxList = ({
1505
1504
  style,
1506
1505
  value: entry.item,
1507
1506
  children: [
1508
- renderItem?.(entry.item) ?? /* @__PURE__ */ jsx13("span", {
1507
+ renderItem?.(entry.item) ?? /* @__PURE__ */ jsx12("span", {
1509
1508
  className: "min-w-0 truncate",
1510
1509
  children: entry.item.label
1511
1510
  }),
1512
- /* @__PURE__ */ jsx13(ComboboxPrimitive.ItemIndicator, {
1511
+ /* @__PURE__ */ jsx12(ComboboxPrimitive.ItemIndicator, {
1513
1512
  className: "absolute right-2 flex size-4 items-center justify-center",
1514
- children: /* @__PURE__ */ jsx13(Check, {})
1513
+ children: /* @__PURE__ */ jsx12(Check, {})
1515
1514
  })
1516
1515
  ]
1517
1516
  }, entry.item.value);
@@ -1530,8 +1529,8 @@ var VirtualizedComboboxContent = ({
1530
1529
  virtualizerRef
1531
1530
  }) => {
1532
1531
  const labels = virtualizedComboboxMessages(messageOverrides);
1533
- return /* @__PURE__ */ jsx13(ComboboxPrimitive.Portal, {
1534
- children: /* @__PURE__ */ jsx13(ComboboxPrimitive.Positioner, {
1532
+ return /* @__PURE__ */ jsx12(ComboboxPrimitive.Portal, {
1533
+ children: /* @__PURE__ */ jsx12(ComboboxPrimitive.Positioner, {
1535
1534
  align: "start",
1536
1535
  className: "isolate z-50",
1537
1536
  side: "bottom",
@@ -1539,17 +1538,17 @@ var VirtualizedComboboxContent = ({
1539
1538
  children: /* @__PURE__ */ jsxs5(ComboboxPrimitive.Popup, {
1540
1539
  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),
1541
1540
  children: [
1542
- /* @__PURE__ */ jsx13("div", {
1541
+ /* @__PURE__ */ jsx12("div", {
1543
1542
  className: "min-w-0 p-1 pb-0",
1544
- children: /* @__PURE__ */ jsx13(InputGroup, {
1543
+ children: /* @__PURE__ */ jsx12(InputGroup, {
1545
1544
  className: "border-input/30 bg-input/30 h-8 w-full min-w-0 shadow-none",
1546
- children: /* @__PURE__ */ jsx13(ComboboxPrimitive.Input, {
1545
+ children: /* @__PURE__ */ jsx12(ComboboxPrimitive.Input, {
1547
1546
  placeholder: labels.search,
1548
- render: /* @__PURE__ */ jsx13(InputGroupInput, {})
1547
+ render: /* @__PURE__ */ jsx12(InputGroupInput, {})
1549
1548
  })
1550
1549
  })
1551
1550
  }),
1552
- /* @__PURE__ */ jsx13(VirtualizedComboboxList, {
1551
+ /* @__PURE__ */ jsx12(VirtualizedComboboxList, {
1553
1552
  emptyLabel,
1554
1553
  groupSelections,
1555
1554
  itemIndexRef,
@@ -1572,20 +1571,20 @@ var defaultTrigger = (ariaLabel, ariaInvalid, disabled, label, triggerId) => /*
1572
1571
  type: "button",
1573
1572
  variant: "outline",
1574
1573
  children: [
1575
- /* @__PURE__ */ jsx13("span", {
1574
+ /* @__PURE__ */ jsx12("span", {
1576
1575
  className: "min-w-0 flex-1 truncate pr-7 text-left",
1577
1576
  children: label
1578
1577
  }),
1579
- /* @__PURE__ */ jsx13(ChevronsUpDown, {
1578
+ /* @__PURE__ */ jsx12(ChevronsUpDown, {
1580
1579
  className: "text-muted-foreground shrink-0 opacity-70"
1581
1580
  })
1582
1581
  ]
1583
1582
  });
1584
- var defaultClear = (label) => /* @__PURE__ */ jsx13(ComboboxPrimitive.Clear, {
1583
+ var defaultClear = (label) => /* @__PURE__ */ jsx12(ComboboxPrimitive.Clear, {
1585
1584
  "aria-label": label,
1586
1585
  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",
1587
1586
  type: "button",
1588
- children: /* @__PURE__ */ jsx13(X, {
1587
+ children: /* @__PURE__ */ jsx12(X, {
1589
1588
  className: "size-3.5"
1590
1589
  })
1591
1590
  });
@@ -1624,13 +1623,13 @@ var VirtualizedComboboxSingle = (props) => {
1624
1623
  /* @__PURE__ */ jsxs5("div", {
1625
1624
  className: "relative",
1626
1625
  children: [
1627
- /* @__PURE__ */ jsx13(ComboboxPrimitive.Trigger, {
1626
+ /* @__PURE__ */ jsx12(ComboboxPrimitive.Trigger, {
1628
1627
  render: props.trigger ?? defaultTrigger(props.ariaLabel, props.ariaInvalid, props.disabled, selectedLabel(props.value, props.placeholder), props.triggerId)
1629
1628
  }),
1630
1629
  props.trigger ? null : defaultClear(labels.clear)
1631
1630
  ]
1632
1631
  }),
1633
- /* @__PURE__ */ jsx13(VirtualizedComboboxContent, {
1632
+ /* @__PURE__ */ jsx12(VirtualizedComboboxContent, {
1634
1633
  ...props,
1635
1634
  groupSelections: false,
1636
1635
  itemIndexRef,
@@ -1666,13 +1665,13 @@ var VirtualizedComboboxMultiple = (props) => {
1666
1665
  /* @__PURE__ */ jsxs5("div", {
1667
1666
  className: "relative",
1668
1667
  children: [
1669
- /* @__PURE__ */ jsx13(ComboboxPrimitive.Trigger, {
1668
+ /* @__PURE__ */ jsx12(ComboboxPrimitive.Trigger, {
1670
1669
  render: props.trigger ?? defaultTrigger(props.ariaLabel, props.ariaInvalid, props.disabled, selectedLabel(props.value, props.placeholder), props.triggerId)
1671
1670
  }),
1672
1671
  props.trigger ? null : defaultClear(labels.clear)
1673
1672
  ]
1674
1673
  }),
1675
- /* @__PURE__ */ jsx13(VirtualizedComboboxContent, {
1674
+ /* @__PURE__ */ jsx12(VirtualizedComboboxContent, {
1676
1675
  ...props,
1677
1676
  groupSelections: true,
1678
1677
  itemIndexRef,
@@ -1683,15 +1682,15 @@ var VirtualizedComboboxMultiple = (props) => {
1683
1682
  });
1684
1683
  };
1685
1684
  function VirtualizedCombobox(props) {
1686
- return props.multiple ? /* @__PURE__ */ jsx13(VirtualizedComboboxMultiple, {
1685
+ return props.multiple ? /* @__PURE__ */ jsx12(VirtualizedComboboxMultiple, {
1687
1686
  ...props
1688
- }) : /* @__PURE__ */ jsx13(VirtualizedComboboxSingle, {
1687
+ }) : /* @__PURE__ */ jsx12(VirtualizedComboboxSingle, {
1689
1688
  ...props
1690
1689
  });
1691
1690
  }
1692
1691
 
1693
1692
  // ../../src/components/ui/form.tsx
1694
- import { jsx as jsx14, jsxs as jsxs6 } from "react/jsx-runtime";
1693
+ import { jsx as jsx13, jsxs as jsxs6 } from "react/jsx-runtime";
1695
1694
  var messages3 = {
1696
1695
  en: {
1697
1696
  keyValueKey: "Key",
@@ -1729,14 +1728,14 @@ var formMessages = (overrides) => ({
1729
1728
  ...overrides
1730
1729
  });
1731
1730
  var ErrorMessage = ({ text }) => {
1732
- return /* @__PURE__ */ jsx14("em", {
1731
+ return /* @__PURE__ */ jsx13("em", {
1733
1732
  role: "alert",
1734
1733
  className: "text-destructive text-sm",
1735
1734
  children: text
1736
1735
  });
1737
1736
  };
1738
1737
  function FieldError({ errors = [] }) {
1739
- return errors?.length > 0 ? /* @__PURE__ */ jsx14(ErrorMessage, {
1738
+ return errors?.length > 0 ? /* @__PURE__ */ jsx13(ErrorMessage, {
1740
1739
  text: errors.map((error) => {
1741
1740
  return error.message?.toString().split(" ").map((word) => {
1742
1741
  if (word.startsWith("t:"))
@@ -1760,24 +1759,24 @@ var TextField = ({
1760
1759
  /* @__PURE__ */ jsxs6("div", {
1761
1760
  className: "flex w-full items-center gap-2",
1762
1761
  children: [
1763
- /* @__PURE__ */ jsx14(FieldLabel, {
1762
+ /* @__PURE__ */ jsx13(FieldLabel, {
1764
1763
  htmlFor: field.name,
1765
1764
  children: props.label
1766
1765
  }),
1767
1766
  children
1768
1767
  ]
1769
1768
  }),
1770
- /* @__PURE__ */ jsx14(Input, {
1769
+ /* @__PURE__ */ jsx13(Input, {
1771
1770
  id: field.name,
1772
1771
  value: field.state.value ?? "",
1773
1772
  onChange: (e) => field.handleChange(e.target.value),
1774
1773
  ...props,
1775
1774
  "aria-invalid": invalid
1776
1775
  }),
1777
- props.description && /* @__PURE__ */ jsx14(FieldDescription, {
1776
+ props.description && /* @__PURE__ */ jsx13(FieldDescription, {
1778
1777
  children: props.description
1779
1778
  }),
1780
- /* @__PURE__ */ jsx14(FieldError, {
1779
+ /* @__PURE__ */ jsx13(FieldError, {
1781
1780
  errors: field.getMeta().errors
1782
1781
  })
1783
1782
  ]
@@ -1796,24 +1795,24 @@ var TextAreaField = ({
1796
1795
  /* @__PURE__ */ jsxs6("div", {
1797
1796
  className: "flex w-full items-center gap-2",
1798
1797
  children: [
1799
- /* @__PURE__ */ jsx14(FieldLabel, {
1798
+ /* @__PURE__ */ jsx13(FieldLabel, {
1800
1799
  htmlFor: field.name,
1801
1800
  children: props.label
1802
1801
  }),
1803
1802
  children
1804
1803
  ]
1805
1804
  }),
1806
- /* @__PURE__ */ jsx14(Textarea, {
1805
+ /* @__PURE__ */ jsx13(Textarea, {
1807
1806
  id: field.name,
1808
1807
  value: field.state.value ?? "",
1809
1808
  onChange: (e) => field.handleChange(e.target.value),
1810
1809
  ...props,
1811
1810
  "aria-invalid": invalid
1812
1811
  }),
1813
- props.description && /* @__PURE__ */ jsx14(FieldDescription, {
1812
+ props.description && /* @__PURE__ */ jsx13(FieldDescription, {
1814
1813
  children: props.description
1815
1814
  }),
1816
- /* @__PURE__ */ jsx14(FieldError, {
1815
+ /* @__PURE__ */ jsx13(FieldError, {
1817
1816
  errors: field.getMeta().errors
1818
1817
  })
1819
1818
  ]
@@ -1828,7 +1827,7 @@ var CheckboxField = (props) => {
1828
1827
  /* @__PURE__ */ jsxs6("div", {
1829
1828
  className: "flex flex-row items-center gap-2",
1830
1829
  children: [
1831
- /* @__PURE__ */ jsx14(Checkbox, {
1830
+ /* @__PURE__ */ jsx13(Checkbox, {
1832
1831
  id: field.name,
1833
1832
  name: field.name,
1834
1833
  checked: field.state.value ?? false,
@@ -1836,16 +1835,16 @@ var CheckboxField = (props) => {
1836
1835
  onCheckedChange: (checked) => field.handleChange(checked),
1837
1836
  "aria-invalid": invalid
1838
1837
  }),
1839
- /* @__PURE__ */ jsx14(FieldLabel, {
1838
+ /* @__PURE__ */ jsx13(FieldLabel, {
1840
1839
  htmlFor: field.name,
1841
1840
  children: props.label
1842
1841
  })
1843
1842
  ]
1844
1843
  }),
1845
- props.description && /* @__PURE__ */ jsx14(FieldDescription, {
1844
+ props.description && /* @__PURE__ */ jsx13(FieldDescription, {
1846
1845
  children: props.description
1847
1846
  }),
1848
- /* @__PURE__ */ jsx14(FieldError, {
1847
+ /* @__PURE__ */ jsx13(FieldError, {
1849
1848
  errors: field.getMeta().errors
1850
1849
  })
1851
1850
  ]
@@ -1863,15 +1862,15 @@ var SingleSelectControl = ({
1863
1862
  onValueChange: (value) => field.handleChange(value ?? ""),
1864
1863
  defaultValue: field.state.value,
1865
1864
  children: [
1866
- /* @__PURE__ */ jsx14(SelectTrigger, {
1865
+ /* @__PURE__ */ jsx13(SelectTrigger, {
1867
1866
  className: "gap-1",
1868
1867
  id: field.name,
1869
1868
  "aria-invalid": invalid,
1870
- children: /* @__PURE__ */ jsx14(SelectValue, {
1869
+ children: /* @__PURE__ */ jsx13(SelectValue, {
1871
1870
  placeholder
1872
1871
  })
1873
1872
  }),
1874
- /* @__PURE__ */ jsx14(SelectOptions, {
1873
+ /* @__PURE__ */ jsx13(SelectOptions, {
1875
1874
  options
1876
1875
  })
1877
1876
  ]
@@ -1889,15 +1888,15 @@ var MultipleSelectControl = ({
1889
1888
  multiple: true,
1890
1889
  value: field.state.value ?? [],
1891
1890
  children: [
1892
- /* @__PURE__ */ jsx14(SelectTrigger, {
1891
+ /* @__PURE__ */ jsx13(SelectTrigger, {
1893
1892
  className: "gap-1",
1894
1893
  id: field.name,
1895
1894
  "aria-invalid": invalid,
1896
- children: /* @__PURE__ */ jsx14(SelectValue, {
1895
+ children: /* @__PURE__ */ jsx13(SelectValue, {
1897
1896
  placeholder
1898
1897
  })
1899
1898
  }),
1900
- /* @__PURE__ */ jsx14(SelectOptions, {
1899
+ /* @__PURE__ */ jsx13(SelectOptions, {
1901
1900
  options
1902
1901
  })
1903
1902
  ]
@@ -1905,9 +1904,9 @@ var MultipleSelectControl = ({
1905
1904
  };
1906
1905
  var SelectOptions = ({
1907
1906
  options
1908
- }) => /* @__PURE__ */ jsx14(SelectContent, {
1909
- children: /* @__PURE__ */ jsx14(SelectGroup, {
1910
- children: options.map((option) => /* @__PURE__ */ jsx14(SelectItem, {
1907
+ }) => /* @__PURE__ */ jsx13(SelectContent, {
1908
+ children: /* @__PURE__ */ jsx13(SelectGroup, {
1909
+ children: options.map((option) => /* @__PURE__ */ jsx13(SelectItem, {
1911
1910
  value: option.value,
1912
1911
  children: option.label
1913
1912
  }, option.label))
@@ -1925,23 +1924,23 @@ var SelectField = ({
1925
1924
  return /* @__PURE__ */ jsxs6(Field, {
1926
1925
  "data-invalid": invalid,
1927
1926
  children: [
1928
- /* @__PURE__ */ jsx14(FieldLabel, {
1927
+ /* @__PURE__ */ jsx13(FieldLabel, {
1929
1928
  htmlFor: field.name,
1930
1929
  children: label
1931
1930
  }),
1932
- multiple ? /* @__PURE__ */ jsx14(MultipleSelectControl, {
1931
+ multiple ? /* @__PURE__ */ jsx13(MultipleSelectControl, {
1933
1932
  invalid,
1934
1933
  options,
1935
1934
  placeholder
1936
- }) : /* @__PURE__ */ jsx14(SingleSelectControl, {
1935
+ }) : /* @__PURE__ */ jsx13(SingleSelectControl, {
1937
1936
  invalid,
1938
1937
  options,
1939
1938
  placeholder
1940
1939
  }),
1941
- description ? /* @__PURE__ */ jsx14(FieldDescription, {
1940
+ description ? /* @__PURE__ */ jsx13(FieldDescription, {
1942
1941
  children: description
1943
1942
  }) : null,
1944
- /* @__PURE__ */ jsx14(FieldError, {
1943
+ /* @__PURE__ */ jsx13(FieldError, {
1945
1944
  errors: field.getMeta().errors
1946
1945
  })
1947
1946
  ]
@@ -1971,14 +1970,14 @@ var KeyValueField = (props) => {
1971
1970
  return /* @__PURE__ */ jsxs6(Field, {
1972
1971
  "data-invalid": invalid,
1973
1972
  children: [
1974
- /* @__PURE__ */ jsx14(FieldLabel, {
1973
+ /* @__PURE__ */ jsx13(FieldLabel, {
1975
1974
  htmlFor: field.name,
1976
1975
  children: props.label
1977
1976
  }),
1978
1977
  keyValues.map(([key, value], index) => /* @__PURE__ */ jsxs6("div", {
1979
1978
  className: "flex w-full flex-row items-center gap-2",
1980
1979
  children: [
1981
- /* @__PURE__ */ jsx14(Input, {
1980
+ /* @__PURE__ */ jsx13(Input, {
1982
1981
  id: field.name,
1983
1982
  placeholder: labels.keyValueKey,
1984
1983
  name: field.name,
@@ -1989,7 +1988,7 @@ var KeyValueField = (props) => {
1989
1988
  field.handleChange(updateKeyValue(e.target.value, value, index));
1990
1989
  }
1991
1990
  }),
1992
- /* @__PURE__ */ jsx14(Input, {
1991
+ /* @__PURE__ */ jsx13(Input, {
1993
1992
  id: field.name,
1994
1993
  name: field.name,
1995
1994
  type: "text",
@@ -2008,13 +2007,13 @@ var KeyValueField = (props) => {
2008
2007
  field.handleChange(deleteKeyValue(index));
2009
2008
  },
2010
2009
  children: [
2011
- /* @__PURE__ */ jsx14(Trash, {}),
2010
+ /* @__PURE__ */ jsx13(Trash, {}),
2012
2011
  labels.keyValueDelete
2013
2012
  ]
2014
2013
  })
2015
2014
  ]
2016
2015
  }, index)),
2017
- /* @__PURE__ */ jsx14("div", {
2016
+ /* @__PURE__ */ jsx13("div", {
2018
2017
  className: "flex flex-row items-center gap-2",
2019
2018
  children: /* @__PURE__ */ jsxs6(Button, {
2020
2019
  size: "sm",
@@ -2027,21 +2026,21 @@ var KeyValueField = (props) => {
2027
2026
  });
2028
2027
  },
2029
2028
  children: [
2030
- /* @__PURE__ */ jsx14(Plus, {}),
2029
+ /* @__PURE__ */ jsx13(Plus, {}),
2031
2030
  labels.keyValueAdd
2032
2031
  ]
2033
2032
  })
2034
2033
  }),
2035
- props.description && /* @__PURE__ */ jsx14(FieldDescription, {
2034
+ props.description && /* @__PURE__ */ jsx13(FieldDescription, {
2036
2035
  children: props.description
2037
2036
  }),
2038
- /* @__PURE__ */ jsx14(FieldError, {
2037
+ /* @__PURE__ */ jsx13(FieldError, {
2039
2038
  errors: field.getMeta().errors
2040
2039
  })
2041
2040
  ]
2042
2041
  });
2043
2042
  };
2044
- var MultiSelectField = (props) => /* @__PURE__ */ jsx14(SelectField, {
2043
+ var MultiSelectField = (props) => /* @__PURE__ */ jsx13(SelectField, {
2045
2044
  ...props,
2046
2045
  multiple: true
2047
2046
  });
@@ -2072,7 +2071,7 @@ var SingleSearchableSelectControl = ({
2072
2071
  }) => {
2073
2072
  const field = useFieldContext();
2074
2073
  const { selectedItems, mergedItems } = getSearchableSelectItems(field.state.value ? [field.state.value] : [], initialItems, items);
2075
- return /* @__PURE__ */ jsx14(VirtualizedCombobox, {
2074
+ return /* @__PURE__ */ jsx13(VirtualizedCombobox, {
2076
2075
  ariaInvalid: invalid,
2077
2076
  ariaLabel,
2078
2077
  emptyLabel,
@@ -2102,7 +2101,7 @@ var MultipleSearchableSelectControl = ({
2102
2101
  }) => {
2103
2102
  const field = useFieldContext();
2104
2103
  const { selectedItems, mergedItems } = getSearchableSelectItems(field.state.value ?? [], initialItems, items);
2105
- return /* @__PURE__ */ jsx14(VirtualizedCombobox, {
2104
+ return /* @__PURE__ */ jsx13(VirtualizedCombobox, {
2106
2105
  ariaInvalid: invalid,
2107
2106
  ariaLabel,
2108
2107
  emptyLabel,
@@ -2138,19 +2137,19 @@ var SearchableSelectField = ({
2138
2137
  className: "min-w-0",
2139
2138
  "data-invalid": invalid,
2140
2139
  children: [
2141
- /* @__PURE__ */ jsx14(FieldLabel, {
2140
+ /* @__PURE__ */ jsx13(FieldLabel, {
2142
2141
  htmlFor: field.name,
2143
2142
  children: label
2144
2143
  }),
2145
- multiple ? /* @__PURE__ */ jsx14(MultipleSearchableSelectControl, {
2144
+ multiple ? /* @__PURE__ */ jsx13(MultipleSearchableSelectControl, {
2146
2145
  ...controlProps
2147
- }) : /* @__PURE__ */ jsx14(SingleSearchableSelectControl, {
2146
+ }) : /* @__PURE__ */ jsx13(SingleSearchableSelectControl, {
2148
2147
  ...controlProps
2149
2148
  }),
2150
- description ? /* @__PURE__ */ jsx14(FieldDescription, {
2149
+ description ? /* @__PURE__ */ jsx13(FieldDescription, {
2151
2150
  children: description
2152
2151
  }) : null,
2153
- /* @__PURE__ */ jsx14(FieldError, {
2152
+ /* @__PURE__ */ jsx13(FieldError, {
2154
2153
  errors: field.getMeta().errors
2155
2154
  })
2156
2155
  ]
@@ -2169,11 +2168,11 @@ var FileField = ({
2169
2168
  return /* @__PURE__ */ jsxs6(Field, {
2170
2169
  "data-invalid": invalid,
2171
2170
  children: [
2172
- /* @__PURE__ */ jsx14(FieldLabel, {
2171
+ /* @__PURE__ */ jsx13(FieldLabel, {
2173
2172
  htmlFor: field.name,
2174
2173
  children: label
2175
2174
  }),
2176
- /* @__PURE__ */ jsx14(FilePicker, {
2175
+ /* @__PURE__ */ jsx13(FilePicker, {
2177
2176
  accept,
2178
2177
  canClear: field.state.value instanceof File,
2179
2178
  ...field.state.value instanceof File ? { file: field.state.value } : {},
@@ -2193,7 +2192,7 @@ var FileField = ({
2193
2192
  required,
2194
2193
  title: field.state.value instanceof File ? field.state.value.name : label
2195
2194
  }),
2196
- /* @__PURE__ */ jsx14(FieldError, {
2195
+ /* @__PURE__ */ jsx13(FieldError, {
2197
2196
  errors: field.getMeta().errors
2198
2197
  })
2199
2198
  ]
@@ -2217,11 +2216,11 @@ var ImageField = ({
2217
2216
  return /* @__PURE__ */ jsxs6(Field, {
2218
2217
  "data-invalid": invalid,
2219
2218
  children: [
2220
- /* @__PURE__ */ jsx14(FieldLabel, {
2219
+ /* @__PURE__ */ jsx13(FieldLabel, {
2221
2220
  htmlFor: field.name,
2222
2221
  children: label
2223
2222
  }),
2224
- /* @__PURE__ */ jsx14(FilePicker, {
2223
+ /* @__PURE__ */ jsx13(FilePicker, {
2225
2224
  accept: "image/*",
2226
2225
  canClear: Boolean(field.state.value),
2227
2226
  ...field.state.value instanceof File ? { file: field.state.value } : {},
@@ -2235,10 +2234,10 @@ var ImageField = ({
2235
2234
  onClear: () => field.handleChange(null),
2236
2235
  title: field.state.value instanceof File ? field.state.value.name : label
2237
2236
  }),
2238
- size.suggestedWidth && size.suggestedHeight && /* @__PURE__ */ jsx14(FieldDescription, {
2237
+ size.suggestedWidth && size.suggestedHeight && /* @__PURE__ */ jsx13(FieldDescription, {
2239
2238
  children: labels.suggestedImageSize(String(size.suggestedWidth), String(size.suggestedHeight))
2240
2239
  }),
2241
- /* @__PURE__ */ jsx14(FieldError, {
2240
+ /* @__PURE__ */ jsx13(FieldError, {
2242
2241
  errors: field.getMeta().errors
2243
2242
  })
2244
2243
  ]
@@ -2250,31 +2249,31 @@ var BlockNavigation = ({
2250
2249
  const labels = formMessages(messages4);
2251
2250
  const form = useFormContext();
2252
2251
  const shouldBlock = useStore(form.store, (formState) => formState.isDirty && !(formState.isSubmitting || formState.isSubmitted));
2253
- return /* @__PURE__ */ jsx14(Block, {
2252
+ return /* @__PURE__ */ jsx13(Block, {
2254
2253
  enableBeforeUnload: () => shouldBlock,
2255
2254
  shouldBlockFn: () => shouldBlock,
2256
2255
  withResolver: true,
2257
- children: ({ status, proceed, reset }) => /* @__PURE__ */ jsx14(AlertDialog, {
2256
+ children: ({ status, proceed, reset }) => /* @__PURE__ */ jsx13(AlertDialog, {
2258
2257
  open: status === "blocked",
2259
2258
  children: /* @__PURE__ */ jsxs6(AlertDialogContent, {
2260
2259
  children: [
2261
2260
  /* @__PURE__ */ jsxs6(AlertDialogHeader, {
2262
2261
  children: [
2263
- /* @__PURE__ */ jsx14(AlertDialogTitle, {
2262
+ /* @__PURE__ */ jsx13(AlertDialogTitle, {
2264
2263
  children: labels.blockNavigationTitle
2265
2264
  }),
2266
- /* @__PURE__ */ jsx14(AlertDialogDescription, {
2265
+ /* @__PURE__ */ jsx13(AlertDialogDescription, {
2267
2266
  children: labels.blockNavigationDescription
2268
2267
  })
2269
2268
  ]
2270
2269
  }),
2271
2270
  /* @__PURE__ */ jsxs6(AlertDialogFooter, {
2272
2271
  children: [
2273
- /* @__PURE__ */ jsx14(AlertDialogCancel, {
2272
+ /* @__PURE__ */ jsx13(AlertDialogCancel, {
2274
2273
  onClick: reset,
2275
2274
  children: labels.blockNavigationCancel
2276
2275
  }),
2277
- /* @__PURE__ */ jsx14(AlertDialogAction, {
2276
+ /* @__PURE__ */ jsx13(AlertDialogAction, {
2278
2277
  onClick: proceed,
2279
2278
  children: labels.blockNavigationConfirm
2280
2279
  })
@@ -2291,14 +2290,14 @@ var SubmitButton = ({
2291
2290
  }) => {
2292
2291
  const labels = formMessages(messages4);
2293
2292
  const form = useFormContext();
2294
- return /* @__PURE__ */ jsx14(form.Subscribe, {
2293
+ return /* @__PURE__ */ jsx13(form.Subscribe, {
2295
2294
  selector: (formState) => [formState.isSubmitting],
2296
2295
  children: ([isSubmitting]) => /* @__PURE__ */ jsxs6(Button, {
2297
2296
  type: "submit",
2298
2297
  disabled: isSubmitting,
2299
2298
  className: "self-start",
2300
2299
  children: [
2301
- isSubmitting && /* @__PURE__ */ jsx14(Loader2, {
2300
+ isSubmitting && /* @__PURE__ */ jsx13(Loader2, {
2302
2301
  className: "animate-spin"
2303
2302
  }),
2304
2303
  children ?? labels.submit
@@ -2316,9 +2315,9 @@ var getFormErrorText = (error) => {
2316
2315
  };
2317
2316
  var FormError = () => {
2318
2317
  const form = useFormContext();
2319
- return /* @__PURE__ */ jsx14(form.Subscribe, {
2318
+ return /* @__PURE__ */ jsx13(form.Subscribe, {
2320
2319
  selector: (formState) => getFormErrorText(formState.errorMap.onSubmit),
2321
- children: (error) => error ? /* @__PURE__ */ jsx14(ErrorMessage, {
2320
+ children: (error) => error ? /* @__PURE__ */ jsx13(ErrorMessage, {
2322
2321
  text: error
2323
2322
  }) : null
2324
2323
  });
@@ -2340,16 +2339,16 @@ var FieldWrapper = ({
2340
2339
  localized && editingLocale && locales2 && /* @__PURE__ */ jsxs6(Badge, {
2341
2340
  variant: "outline",
2342
2341
  children: [
2343
- /* @__PURE__ */ jsx14(Languages, {}),
2342
+ /* @__PURE__ */ jsx13(Languages, {}),
2344
2343
  locales2.find((l) => l.value === editingLocale).label
2345
2344
  ]
2346
2345
  })
2347
2346
  ]
2348
2347
  }),
2349
- description && /* @__PURE__ */ jsx14(FieldDescription, {
2348
+ description && /* @__PURE__ */ jsx13(FieldDescription, {
2350
2349
  children: description
2351
2350
  }),
2352
- /* @__PURE__ */ jsx14(FieldGroup, {
2351
+ /* @__PURE__ */ jsx13(FieldGroup, {
2353
2352
  children
2354
2353
  })
2355
2354
  ]
@@ -2362,9 +2361,9 @@ var RevertButton = ({
2362
2361
  const labels = formMessages(messages4);
2363
2362
  const field = useFieldContext();
2364
2363
  if (field.state.value !== original) {
2365
- return /* @__PURE__ */ jsx14("div", {
2364
+ return /* @__PURE__ */ jsx13("div", {
2366
2365
  className: "flex flex-1 justify-end",
2367
- children: /* @__PURE__ */ jsx14(Button, {
2366
+ children: /* @__PURE__ */ jsx13(Button, {
2368
2367
  variant: "link",
2369
2368
  className: "-mr-4 h-auto py-0",
2370
2369
  onClick: () => field.handleChange(original),
@@ -2396,12 +2395,12 @@ var { useAppForm, withForm, withFieldGroup } = createFormHook({
2396
2395
  }
2397
2396
  });
2398
2397
  export {
2399
- withForm,
2400
- withFieldGroup,
2401
- useAppForm,
2402
- formMessages,
2403
- FieldWrapper,
2404
- FieldError,
2398
+ BlockNavigation,
2405
2399
  ErrorMessage,
2406
- BlockNavigation
2400
+ FieldError,
2401
+ FieldWrapper,
2402
+ formMessages,
2403
+ useAppForm,
2404
+ withFieldGroup,
2405
+ withForm
2407
2406
  };