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