@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
@@ -1457,14 +1457,9 @@ import {
1457
1457
 
1458
1458
  // ../../src/components/ui/input-group.tsx
1459
1459
  import { cva as cva3 } from "class-variance-authority";
1460
-
1461
- // ../../src/components/ui/textarea.tsx
1462
1460
  import { jsx as jsx15 } from "react/jsx-runtime";
1463
-
1464
- // ../../src/components/ui/input-group.tsx
1465
- import { jsx as jsx16 } from "react/jsx-runtime";
1466
1461
  function InputGroup({ className, ...props }) {
1467
- return /* @__PURE__ */ jsx16("div", {
1462
+ return /* @__PURE__ */ jsx15("div", {
1468
1463
  "data-slot": "input-group",
1469
1464
  role: "group",
1470
1465
  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),
@@ -1497,7 +1492,7 @@ function InputGroupInput({
1497
1492
  className,
1498
1493
  ...props
1499
1494
  }) {
1500
- return /* @__PURE__ */ jsx16(Input, {
1495
+ return /* @__PURE__ */ jsx15(Input, {
1501
1496
  "data-slot": "input-group-control",
1502
1497
  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),
1503
1498
  ...props
@@ -1505,7 +1500,7 @@ function InputGroupInput({
1505
1500
  }
1506
1501
 
1507
1502
  // ../../src/components/ui/virtualized-combobox.tsx
1508
- import { jsx as jsx17, jsxs as jsxs8 } from "react/jsx-runtime";
1503
+ import { jsx as jsx16, jsxs as jsxs8 } from "react/jsx-runtime";
1509
1504
  "use client";
1510
1505
  var messages2 = {
1511
1506
  en: {
@@ -1581,19 +1576,19 @@ var VirtualizedComboboxList = ({
1581
1576
  virtualizer.measure();
1582
1577
  }, [virtualizer]);
1583
1578
  if (filteredItems.length === 0) {
1584
- return /* @__PURE__ */ jsx17("div", {
1579
+ return /* @__PURE__ */ jsx16("div", {
1585
1580
  className: "text-muted-foreground py-6 text-center text-sm",
1586
1581
  children: emptyLabel
1587
1582
  });
1588
1583
  }
1589
- return /* @__PURE__ */ jsx17(ComboboxPrimitive.List, {
1584
+ return /* @__PURE__ */ jsx16(ComboboxPrimitive.List, {
1590
1585
  className: "scroll-py-1 overflow-auto overscroll-contain p-1",
1591
1586
  ref: handleScrollElementRef,
1592
1587
  style: {
1593
1588
  height: Math.min(virtualizer.getTotalSize() + 8, 288),
1594
1589
  maxHeight: "var(--available-height)"
1595
1590
  },
1596
- children: /* @__PURE__ */ jsx17("div", {
1591
+ children: /* @__PURE__ */ jsx16("div", {
1597
1592
  className: "relative w-full",
1598
1593
  role: "presentation",
1599
1594
  style: { height: virtualizer.getTotalSize() },
@@ -1606,9 +1601,9 @@ var VirtualizedComboboxList = ({
1606
1601
  transform: `translateY(${virtualItem.start}px)`
1607
1602
  };
1608
1603
  if (entry.kind === "group") {
1609
- return /* @__PURE__ */ jsx17(ComboboxPrimitive.Group, {
1604
+ return /* @__PURE__ */ jsx16(ComboboxPrimitive.Group, {
1610
1605
  className: "contents",
1611
- children: /* @__PURE__ */ jsx17(ComboboxPrimitive.GroupLabel, {
1606
+ children: /* @__PURE__ */ jsx16(ComboboxPrimitive.GroupLabel, {
1612
1607
  className: "text-muted-foreground absolute top-0 left-0 w-full px-2 pt-3 pb-1 text-xs",
1613
1608
  "data-index": virtualItem.index,
1614
1609
  ref: virtualizer.measureElement,
@@ -1627,13 +1622,13 @@ var VirtualizedComboboxList = ({
1627
1622
  style,
1628
1623
  value: entry.item,
1629
1624
  children: [
1630
- renderItem?.(entry.item) ?? /* @__PURE__ */ jsx17("span", {
1625
+ renderItem?.(entry.item) ?? /* @__PURE__ */ jsx16("span", {
1631
1626
  className: "min-w-0 truncate",
1632
1627
  children: entry.item.label
1633
1628
  }),
1634
- /* @__PURE__ */ jsx17(ComboboxPrimitive.ItemIndicator, {
1629
+ /* @__PURE__ */ jsx16(ComboboxPrimitive.ItemIndicator, {
1635
1630
  className: "absolute right-2 flex size-4 items-center justify-center",
1636
- children: /* @__PURE__ */ jsx17(Check, {})
1631
+ children: /* @__PURE__ */ jsx16(Check, {})
1637
1632
  })
1638
1633
  ]
1639
1634
  }, entry.item.value);
@@ -1652,8 +1647,8 @@ var VirtualizedComboboxContent = ({
1652
1647
  virtualizerRef
1653
1648
  }) => {
1654
1649
  const labels2 = virtualizedComboboxMessages(messageOverrides);
1655
- return /* @__PURE__ */ jsx17(ComboboxPrimitive.Portal, {
1656
- children: /* @__PURE__ */ jsx17(ComboboxPrimitive.Positioner, {
1650
+ return /* @__PURE__ */ jsx16(ComboboxPrimitive.Portal, {
1651
+ children: /* @__PURE__ */ jsx16(ComboboxPrimitive.Positioner, {
1657
1652
  align: "start",
1658
1653
  className: "isolate z-50",
1659
1654
  side: "bottom",
@@ -1661,17 +1656,17 @@ var VirtualizedComboboxContent = ({
1661
1656
  children: /* @__PURE__ */ jsxs8(ComboboxPrimitive.Popup, {
1662
1657
  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),
1663
1658
  children: [
1664
- /* @__PURE__ */ jsx17("div", {
1659
+ /* @__PURE__ */ jsx16("div", {
1665
1660
  className: "min-w-0 p-1 pb-0",
1666
- children: /* @__PURE__ */ jsx17(InputGroup, {
1661
+ children: /* @__PURE__ */ jsx16(InputGroup, {
1667
1662
  className: "border-input/30 bg-input/30 h-8 w-full min-w-0 shadow-none",
1668
- children: /* @__PURE__ */ jsx17(ComboboxPrimitive.Input, {
1663
+ children: /* @__PURE__ */ jsx16(ComboboxPrimitive.Input, {
1669
1664
  placeholder: labels2.search,
1670
- render: /* @__PURE__ */ jsx17(InputGroupInput, {})
1665
+ render: /* @__PURE__ */ jsx16(InputGroupInput, {})
1671
1666
  })
1672
1667
  })
1673
1668
  }),
1674
- /* @__PURE__ */ jsx17(VirtualizedComboboxList, {
1669
+ /* @__PURE__ */ jsx16(VirtualizedComboboxList, {
1675
1670
  emptyLabel,
1676
1671
  groupSelections,
1677
1672
  itemIndexRef,
@@ -1694,20 +1689,20 @@ var defaultTrigger = (ariaLabel, ariaInvalid, disabled, label, triggerId) => /*
1694
1689
  type: "button",
1695
1690
  variant: "outline",
1696
1691
  children: [
1697
- /* @__PURE__ */ jsx17("span", {
1692
+ /* @__PURE__ */ jsx16("span", {
1698
1693
  className: "min-w-0 flex-1 truncate pr-7 text-left",
1699
1694
  children: label
1700
1695
  }),
1701
- /* @__PURE__ */ jsx17(ChevronsUpDown, {
1696
+ /* @__PURE__ */ jsx16(ChevronsUpDown, {
1702
1697
  className: "text-muted-foreground shrink-0 opacity-70"
1703
1698
  })
1704
1699
  ]
1705
1700
  });
1706
- var defaultClear = (label) => /* @__PURE__ */ jsx17(ComboboxPrimitive.Clear, {
1701
+ var defaultClear = (label) => /* @__PURE__ */ jsx16(ComboboxPrimitive.Clear, {
1707
1702
  "aria-label": label,
1708
1703
  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",
1709
1704
  type: "button",
1710
- children: /* @__PURE__ */ jsx17(X, {
1705
+ children: /* @__PURE__ */ jsx16(X, {
1711
1706
  className: "size-3.5"
1712
1707
  })
1713
1708
  });
@@ -1746,13 +1741,13 @@ var VirtualizedComboboxSingle = (props) => {
1746
1741
  /* @__PURE__ */ jsxs8("div", {
1747
1742
  className: "relative",
1748
1743
  children: [
1749
- /* @__PURE__ */ jsx17(ComboboxPrimitive.Trigger, {
1744
+ /* @__PURE__ */ jsx16(ComboboxPrimitive.Trigger, {
1750
1745
  render: props.trigger ?? defaultTrigger(props.ariaLabel, props.ariaInvalid, props.disabled, selectedLabel(props.value, props.placeholder), props.triggerId)
1751
1746
  }),
1752
1747
  props.trigger ? null : defaultClear(labels2.clear)
1753
1748
  ]
1754
1749
  }),
1755
- /* @__PURE__ */ jsx17(VirtualizedComboboxContent, {
1750
+ /* @__PURE__ */ jsx16(VirtualizedComboboxContent, {
1756
1751
  ...props,
1757
1752
  groupSelections: false,
1758
1753
  itemIndexRef,
@@ -1788,13 +1783,13 @@ var VirtualizedComboboxMultiple = (props) => {
1788
1783
  /* @__PURE__ */ jsxs8("div", {
1789
1784
  className: "relative",
1790
1785
  children: [
1791
- /* @__PURE__ */ jsx17(ComboboxPrimitive.Trigger, {
1786
+ /* @__PURE__ */ jsx16(ComboboxPrimitive.Trigger, {
1792
1787
  render: props.trigger ?? defaultTrigger(props.ariaLabel, props.ariaInvalid, props.disabled, selectedLabel(props.value, props.placeholder), props.triggerId)
1793
1788
  }),
1794
1789
  props.trigger ? null : defaultClear(labels2.clear)
1795
1790
  ]
1796
1791
  }),
1797
- /* @__PURE__ */ jsx17(VirtualizedComboboxContent, {
1792
+ /* @__PURE__ */ jsx16(VirtualizedComboboxContent, {
1798
1793
  ...props,
1799
1794
  groupSelections: true,
1800
1795
  itemIndexRef,
@@ -1805,15 +1800,15 @@ var VirtualizedComboboxMultiple = (props) => {
1805
1800
  });
1806
1801
  };
1807
1802
  function VirtualizedCombobox(props) {
1808
- return props.multiple ? /* @__PURE__ */ jsx17(VirtualizedComboboxMultiple, {
1803
+ return props.multiple ? /* @__PURE__ */ jsx16(VirtualizedComboboxMultiple, {
1809
1804
  ...props
1810
- }) : /* @__PURE__ */ jsx17(VirtualizedComboboxSingle, {
1805
+ }) : /* @__PURE__ */ jsx16(VirtualizedComboboxSingle, {
1811
1806
  ...props
1812
1807
  });
1813
1808
  }
1814
1809
 
1815
1810
  // ../../src/components/ui/data-table.tsx
1816
- import { jsx as jsx18, jsxs as jsxs9, Fragment } from "react/jsx-runtime";
1811
+ import { jsx as jsx17, jsxs as jsxs9, Fragment } from "react/jsx-runtime";
1817
1812
  var DataTablePersistedUiStateSchema = Schema.Struct({
1818
1813
  columnVisibility: Schema.Record(Schema.String, Schema.Boolean),
1819
1814
  columnSizing: Schema.Record(Schema.String, Schema.Number),
@@ -2159,7 +2154,7 @@ var renderCell = (row, column) => {
2159
2154
  };
2160
2155
  const CellRenderer = column.colDef.cellRenderer;
2161
2156
  if (CellRenderer)
2162
- return /* @__PURE__ */ jsx18(CellRenderer, {
2157
+ return /* @__PURE__ */ jsx17(CellRenderer, {
2163
2158
  ...params
2164
2159
  });
2165
2160
  return column.colDef.valueFormatter?.(params) ?? (value === null || value === undefined ? null : String(value));
@@ -2207,30 +2202,30 @@ var DataTableRowActions = ({
2207
2202
  return null;
2208
2203
  return /* @__PURE__ */ jsxs9(DropdownMenu, {
2209
2204
  children: [
2210
- /* @__PURE__ */ jsx18(DropdownMenuTrigger, {
2205
+ /* @__PURE__ */ jsx17(DropdownMenuTrigger, {
2211
2206
  onClick: (event) => event.stopPropagation(),
2212
2207
  render: /* @__PURE__ */ jsxs9(Button, {
2213
2208
  className: "size-8 focus-visible:ring-inset [&_svg:not([class*='size-'])]:size-4",
2214
2209
  size: "icon",
2215
2210
  variant: "ghost",
2216
2211
  children: [
2217
- /* @__PURE__ */ jsx18("span", {
2212
+ /* @__PURE__ */ jsx17("span", {
2218
2213
  className: "sr-only",
2219
2214
  children: title
2220
2215
  }),
2221
- /* @__PURE__ */ jsx18(MoreHorizontal, {})
2216
+ /* @__PURE__ */ jsx17(MoreHorizontal, {})
2222
2217
  ]
2223
2218
  })
2224
2219
  }),
2225
- /* @__PURE__ */ jsx18(DropdownMenuContent, {
2220
+ /* @__PURE__ */ jsx17(DropdownMenuContent, {
2226
2221
  align: "end",
2227
2222
  className: "w-max",
2228
2223
  children: /* @__PURE__ */ jsxs9(DropdownMenuGroup, {
2229
2224
  children: [
2230
- /* @__PURE__ */ jsx18(DropdownMenuLabel, {
2225
+ /* @__PURE__ */ jsx17(DropdownMenuLabel, {
2231
2226
  children: title
2232
2227
  }),
2233
- /* @__PURE__ */ jsx18(DropdownMenuSeparator, {}),
2228
+ /* @__PURE__ */ jsx17(DropdownMenuSeparator, {}),
2234
2229
  visible.map((action) => /* @__PURE__ */ jsxs9(DropdownMenuItem, {
2235
2230
  onClick: (event) => {
2236
2231
  event.stopPropagation();
@@ -2268,7 +2263,7 @@ var DataTableRowActionMenu = ({
2268
2263
  reorderActions.push({
2269
2264
  id: "data-table-move-up",
2270
2265
  name: store.config.labels.moveUp,
2271
- icon: /* @__PURE__ */ jsx18(ArrowUp, {}),
2266
+ icon: /* @__PURE__ */ jsx17(ArrowUp, {}),
2272
2267
  onClick: () => move(rowIndex - 1)
2273
2268
  });
2274
2269
  }
@@ -2276,12 +2271,12 @@ var DataTableRowActionMenu = ({
2276
2271
  reorderActions.push({
2277
2272
  id: "data-table-move-down",
2278
2273
  name: store.config.labels.moveDown,
2279
- icon: /* @__PURE__ */ jsx18(ArrowDown, {}),
2274
+ icon: /* @__PURE__ */ jsx17(ArrowDown, {}),
2280
2275
  onClick: () => move(rowIndex + 1)
2281
2276
  });
2282
2277
  }
2283
2278
  }
2284
- return /* @__PURE__ */ jsx18(DataTableRowActions, {
2279
+ return /* @__PURE__ */ jsx17(DataTableRowActions, {
2285
2280
  actions: [...reorderActions, ...rowActions ? rowActions.items : []],
2286
2281
  row: row.data,
2287
2282
  title: rowActions?.label ?? store.config.labels.actions
@@ -2308,10 +2303,10 @@ var DataTableToolbar = ({
2308
2303
  features.search !== false ? /* @__PURE__ */ jsxs9("div", {
2309
2304
  className: "relative min-w-0",
2310
2305
  children: [
2311
- /* @__PURE__ */ jsx18(Search, {
2306
+ /* @__PURE__ */ jsx17(Search, {
2312
2307
  className: "text-muted-foreground pointer-events-none absolute top-1/2 left-3 size-4 -translate-y-1/2"
2313
2308
  }),
2314
- /* @__PURE__ */ jsx18(Input, {
2309
+ /* @__PURE__ */ jsx17(Input, {
2315
2310
  className: "px-9",
2316
2311
  onChange: (event) => update((state) => ({
2317
2312
  ...state,
@@ -2321,7 +2316,7 @@ var DataTableToolbar = ({
2321
2316
  placeholder: labels2.filter,
2322
2317
  value: store.state.globalFilter ?? ""
2323
2318
  }),
2324
- store.state.globalFilter ? /* @__PURE__ */ jsx18(Button, {
2319
+ store.state.globalFilter ? /* @__PURE__ */ jsx17(Button, {
2325
2320
  "aria-label": labels2.filter,
2326
2321
  className: "absolute top-1/2 right-1 size-7 -translate-y-1/2",
2327
2322
  onClick: () => update((state) => ({
@@ -2331,11 +2326,11 @@ var DataTableToolbar = ({
2331
2326
  })),
2332
2327
  size: "icon",
2333
2328
  variant: "ghost",
2334
- children: /* @__PURE__ */ jsx18(X2, {})
2329
+ children: /* @__PURE__ */ jsx17(X2, {})
2335
2330
  }) : null
2336
2331
  ]
2337
2332
  }) : null,
2338
- /* @__PURE__ */ jsx18("div", {
2333
+ /* @__PURE__ */ jsx17("div", {
2339
2334
  className: "-m-1 flex overflow-x-auto p-1",
2340
2335
  children: /* @__PURE__ */ jsxs9(Menubar, {
2341
2336
  className: "h-auto w-max min-w-full justify-start bg-transparent shadow-none [&_[data-slot=menubar-trigger]]:gap-2 [&_[data-slot=menubar-trigger]_svg]:size-4",
@@ -2346,22 +2341,22 @@ var DataTableToolbar = ({
2346
2341
  className: "bg-primary text-primary-foreground hover:bg-primary/90 aria-expanded:bg-primary/90",
2347
2342
  children: [
2348
2343
  labels2.selected,
2349
- /* @__PURE__ */ jsx18(Badge, {
2344
+ /* @__PURE__ */ jsx17(Badge, {
2350
2345
  variant: "secondary",
2351
2346
  children: selectedRows.length
2352
2347
  }),
2353
- /* @__PURE__ */ jsx18(ChevronDown, {})
2348
+ /* @__PURE__ */ jsx17(ChevronDown, {})
2354
2349
  ]
2355
2350
  }),
2356
- /* @__PURE__ */ jsx18(MenubarContent, {
2351
+ /* @__PURE__ */ jsx17(MenubarContent, {
2357
2352
  align: "end",
2358
2353
  className: "w-max",
2359
2354
  children: /* @__PURE__ */ jsxs9(MenubarGroup, {
2360
2355
  children: [
2361
- /* @__PURE__ */ jsx18(MenubarLabel, {
2356
+ /* @__PURE__ */ jsx17(MenubarLabel, {
2362
2357
  children: bulkActions && bulkActions.label ? bulkActions.label : labels2.actions
2363
2358
  }),
2364
- /* @__PURE__ */ jsx18(MenubarSeparator, {}),
2359
+ /* @__PURE__ */ jsx17(MenubarSeparator, {}),
2365
2360
  visibleBulkActions.map((action) => /* @__PURE__ */ jsxs9(MenubarItem, {
2366
2361
  onClick: () => action.onClick(selectedRows),
2367
2362
  variant: action.variant,
@@ -2380,22 +2375,22 @@ var DataTableToolbar = ({
2380
2375
  /* @__PURE__ */ jsxs9(MenubarTrigger, {
2381
2376
  "aria-label": labels2.groupBy,
2382
2377
  children: [
2383
- /* @__PURE__ */ jsx18(Rows3, {}),
2384
- /* @__PURE__ */ jsx18("span", {
2378
+ /* @__PURE__ */ jsx17(Rows3, {}),
2379
+ /* @__PURE__ */ jsx17("span", {
2385
2380
  className: "hidden sm:inline",
2386
2381
  children: labels2.groupBy
2387
2382
  })
2388
2383
  ]
2389
2384
  }),
2390
- /* @__PURE__ */ jsx18(MenubarContent, {
2385
+ /* @__PURE__ */ jsx17(MenubarContent, {
2391
2386
  align: "end",
2392
2387
  children: /* @__PURE__ */ jsxs9(MenubarGroup, {
2393
2388
  children: [
2394
- /* @__PURE__ */ jsx18(MenubarLabel, {
2389
+ /* @__PURE__ */ jsx17(MenubarLabel, {
2395
2390
  children: labels2.groupBy
2396
2391
  }),
2397
- /* @__PURE__ */ jsx18(MenubarSeparator, {}),
2398
- grouping.fields.map((field) => /* @__PURE__ */ jsx18(MenubarCheckboxItem, {
2392
+ /* @__PURE__ */ jsx17(MenubarSeparator, {}),
2393
+ grouping.fields.map((field) => /* @__PURE__ */ jsx17(MenubarCheckboxItem, {
2399
2394
  checked: store.state.grouping.includes(field.id),
2400
2395
  onCheckedChange: (checked) => update((state) => ({
2401
2396
  ...state,
@@ -2408,22 +2403,22 @@ var DataTableToolbar = ({
2408
2403
  })
2409
2404
  ]
2410
2405
  }) : null,
2411
- features.sorting !== false ? /* @__PURE__ */ jsx18(SortMenu, {
2406
+ features.sorting !== false ? /* @__PURE__ */ jsx17(SortMenu, {
2412
2407
  tableAtom
2413
2408
  }) : null,
2414
- features.gallery ? /* @__PURE__ */ jsx18(ViewMenu, {
2409
+ features.gallery ? /* @__PURE__ */ jsx17(ViewMenu, {
2415
2410
  tableAtom
2416
2411
  }) : null,
2417
- features.columnVisibility !== false ? /* @__PURE__ */ jsx18(ColumnMenu, {
2412
+ features.columnVisibility !== false ? /* @__PURE__ */ jsx17(ColumnMenu, {
2418
2413
  tableAtom
2419
2414
  }) : null,
2420
- features.refresh ? /* @__PURE__ */ jsx18(MenubarMenu, {
2415
+ features.refresh ? /* @__PURE__ */ jsx17(MenubarMenu, {
2421
2416
  children: /* @__PURE__ */ jsxs9(MenubarTrigger, {
2422
2417
  "aria-label": labels2.refresh,
2423
2418
  onClick: features.refresh,
2424
2419
  children: [
2425
- /* @__PURE__ */ jsx18(RefreshCw, {}),
2426
- /* @__PURE__ */ jsx18("span", {
2420
+ /* @__PURE__ */ jsx17(RefreshCw, {}),
2421
+ /* @__PURE__ */ jsx17("span", {
2427
2422
  className: "hidden sm:inline",
2428
2423
  children: labels2.refresh
2429
2424
  })
@@ -2436,25 +2431,25 @@ var DataTableToolbar = ({
2436
2431
  "aria-label": labels2.export,
2437
2432
  disabled: !exportRows.length,
2438
2433
  children: [
2439
- /* @__PURE__ */ jsx18(Download, {}),
2440
- /* @__PURE__ */ jsx18("span", {
2434
+ /* @__PURE__ */ jsx17(Download, {}),
2435
+ /* @__PURE__ */ jsx17("span", {
2441
2436
  className: "hidden sm:inline",
2442
2437
  children: labels2.export
2443
2438
  })
2444
2439
  ]
2445
2440
  }),
2446
- /* @__PURE__ */ jsx18(MenubarContent, {
2441
+ /* @__PURE__ */ jsx17(MenubarContent, {
2447
2442
  align: "end",
2448
2443
  children: /* @__PURE__ */ jsxs9(MenubarGroup, {
2449
2444
  children: [
2450
- /* @__PURE__ */ jsx18(MenubarLabel, {
2445
+ /* @__PURE__ */ jsx17(MenubarLabel, {
2451
2446
  children: labels2.export
2452
2447
  }),
2453
- /* @__PURE__ */ jsx18(MenubarSeparator, {}),
2448
+ /* @__PURE__ */ jsx17(MenubarSeparator, {}),
2454
2449
  /* @__PURE__ */ jsxs9(MenubarItem, {
2455
2450
  onClick: () => downloadCsv(model.visibleColumns.map(columnLabel), exportRows.map((row) => model.visibleColumns.map((column) => String(row.values.get(column.id) ?? ""))), features.export ? features.export.baseName : "table"),
2456
2451
  children: [
2457
- /* @__PURE__ */ jsx18(FileText, {}),
2452
+ /* @__PURE__ */ jsx17(FileText, {}),
2458
2453
  labels2.exportCsv
2459
2454
  ]
2460
2455
  }),
@@ -2464,7 +2459,7 @@ var DataTableToolbar = ({
2464
2459
  row.values.get(column.id)
2465
2460
  ]))), features.export ? features.export.baseName : "table"),
2466
2461
  children: [
2467
- /* @__PURE__ */ jsx18(FileJson, {}),
2462
+ /* @__PURE__ */ jsx17(FileJson, {}),
2468
2463
  labels2.exportJson
2469
2464
  ]
2470
2465
  })
@@ -2497,14 +2492,14 @@ var SortMenu = ({
2497
2492
  /* @__PURE__ */ jsxs9(MenubarTrigger, {
2498
2493
  "aria-label": store.config.labels.sortBy,
2499
2494
  children: [
2500
- current ? current.direction === "desc" ? /* @__PURE__ */ jsx18(ArrowDown, {}) : /* @__PURE__ */ jsx18(ArrowUp, {}) : /* @__PURE__ */ jsx18(ChevronsUpDown2, {}),
2501
- /* @__PURE__ */ jsx18("span", {
2495
+ current ? current.direction === "desc" ? /* @__PURE__ */ jsx17(ArrowDown, {}) : /* @__PURE__ */ jsx17(ArrowUp, {}) : /* @__PURE__ */ jsx17(ChevronsUpDown2, {}),
2496
+ /* @__PURE__ */ jsx17("span", {
2502
2497
  className: "hidden sm:inline",
2503
2498
  children: store.config.labels.sortBy
2504
2499
  })
2505
2500
  ]
2506
2501
  }),
2507
- /* @__PURE__ */ jsx18(MenubarContent, {
2502
+ /* @__PURE__ */ jsx17(MenubarContent, {
2508
2503
  align: "end",
2509
2504
  className: "w-52",
2510
2505
  children: columns.map((column) => {
@@ -2513,7 +2508,7 @@ var SortMenu = ({
2513
2508
  children: [
2514
2509
  /* @__PURE__ */ jsxs9(MenubarSubTrigger, {
2515
2510
  children: [
2516
- sortState ? sortState.direction === "desc" ? /* @__PURE__ */ jsx18(ArrowDown, {}) : /* @__PURE__ */ jsx18(ArrowUp, {}) : null,
2511
+ sortState ? sortState.direction === "desc" ? /* @__PURE__ */ jsx17(ArrowDown, {}) : /* @__PURE__ */ jsx17(ArrowUp, {}) : null,
2517
2512
  columnLabel(column)
2518
2513
  ]
2519
2514
  }),
@@ -2522,7 +2517,7 @@ var SortMenu = ({
2522
2517
  /* @__PURE__ */ jsxs9(MenubarItem, {
2523
2518
  onClick: () => sort(column.id, "asc"),
2524
2519
  children: [
2525
- /* @__PURE__ */ jsx18(ArrowUp, {}),
2520
+ /* @__PURE__ */ jsx17(ArrowUp, {}),
2526
2521
  " ",
2527
2522
  store.config.labels.sortAsc
2528
2523
  ]
@@ -2530,21 +2525,21 @@ var SortMenu = ({
2530
2525
  /* @__PURE__ */ jsxs9(MenubarItem, {
2531
2526
  onClick: () => sort(column.id, "desc"),
2532
2527
  children: [
2533
- /* @__PURE__ */ jsx18(ArrowDown, {}),
2528
+ /* @__PURE__ */ jsx17(ArrowDown, {}),
2534
2529
  " ",
2535
2530
  store.config.labels.sortDesc
2536
2531
  ]
2537
2532
  }),
2538
2533
  sortState ? /* @__PURE__ */ jsxs9(Fragment, {
2539
2534
  children: [
2540
- /* @__PURE__ */ jsx18(MenubarSeparator, {}),
2535
+ /* @__PURE__ */ jsx17(MenubarSeparator, {}),
2541
2536
  /* @__PURE__ */ jsxs9(MenubarItem, {
2542
2537
  onClick: () => changeState(setStore, (state) => ({
2543
2538
  ...state,
2544
2539
  sort: state.sort?.filter(({ id }) => id !== column.id)
2545
2540
  })),
2546
2541
  children: [
2547
- /* @__PURE__ */ jsx18(X2, {}),
2542
+ /* @__PURE__ */ jsx17(X2, {}),
2548
2543
  " ",
2549
2544
  store.config.labels.sortClear
2550
2545
  ]
@@ -2569,14 +2564,14 @@ var ViewMenu = ({
2569
2564
  /* @__PURE__ */ jsxs9(MenubarTrigger, {
2570
2565
  "aria-label": store.config.labels.view,
2571
2566
  children: [
2572
- store.state.view === "gallery" ? /* @__PURE__ */ jsx18(LayoutGrid, {}) : /* @__PURE__ */ jsx18(Rows3, {}),
2573
- /* @__PURE__ */ jsx18("span", {
2567
+ store.state.view === "gallery" ? /* @__PURE__ */ jsx17(LayoutGrid, {}) : /* @__PURE__ */ jsx17(Rows3, {}),
2568
+ /* @__PURE__ */ jsx17("span", {
2574
2569
  className: "hidden sm:inline",
2575
2570
  children: store.config.labels.view
2576
2571
  })
2577
2572
  ]
2578
2573
  }),
2579
- /* @__PURE__ */ jsx18(MenubarContent, {
2574
+ /* @__PURE__ */ jsx17(MenubarContent, {
2580
2575
  align: "end",
2581
2576
  children: /* @__PURE__ */ jsxs9(MenubarRadioGroup, {
2582
2577
  onValueChange: (view) => {
@@ -2589,7 +2584,7 @@ var ViewMenu = ({
2589
2584
  /* @__PURE__ */ jsxs9(MenubarRadioItem, {
2590
2585
  value: "table",
2591
2586
  children: [
2592
- /* @__PURE__ */ jsx18(Rows3, {}),
2587
+ /* @__PURE__ */ jsx17(Rows3, {}),
2593
2588
  " ",
2594
2589
  store.config.labels.tableView
2595
2590
  ]
@@ -2597,7 +2592,7 @@ var ViewMenu = ({
2597
2592
  /* @__PURE__ */ jsxs9(MenubarRadioItem, {
2598
2593
  value: "gallery",
2599
2594
  children: [
2600
- /* @__PURE__ */ jsx18(LayoutGrid, {}),
2595
+ /* @__PURE__ */ jsx17(LayoutGrid, {}),
2601
2596
  " ",
2602
2597
  store.config.labels.galleryView
2603
2598
  ]
@@ -2620,22 +2615,22 @@ var ColumnMenu = ({
2620
2615
  /* @__PURE__ */ jsxs9(MenubarTrigger, {
2621
2616
  "aria-label": store.config.labels.columns,
2622
2617
  children: [
2623
- /* @__PURE__ */ jsx18(Settings2, {}),
2624
- /* @__PURE__ */ jsx18("span", {
2618
+ /* @__PURE__ */ jsx17(Settings2, {}),
2619
+ /* @__PURE__ */ jsx17("span", {
2625
2620
  className: "hidden sm:inline",
2626
2621
  children: store.config.labels.columns
2627
2622
  })
2628
2623
  ]
2629
2624
  }),
2630
- /* @__PURE__ */ jsx18(MenubarContent, {
2625
+ /* @__PURE__ */ jsx17(MenubarContent, {
2631
2626
  align: "end",
2632
2627
  children: /* @__PURE__ */ jsxs9(MenubarGroup, {
2633
2628
  children: [
2634
- /* @__PURE__ */ jsx18(MenubarLabel, {
2629
+ /* @__PURE__ */ jsx17(MenubarLabel, {
2635
2630
  children: store.config.labels.columns
2636
2631
  }),
2637
- /* @__PURE__ */ jsx18(MenubarSeparator, {}),
2638
- columns.map((column) => /* @__PURE__ */ jsx18(MenubarCheckboxItem, {
2632
+ /* @__PURE__ */ jsx17(MenubarSeparator, {}),
2633
+ columns.map((column) => /* @__PURE__ */ jsx17(MenubarCheckboxItem, {
2639
2634
  checked: store.state.columnVisibility[column.id] !== false,
2640
2635
  onCheckedChange: (visible) => changeState(setStore, (state) => ({
2641
2636
  ...state,
@@ -2680,7 +2675,7 @@ var ResizeHandle = ({
2680
2675
  const startWidth = Number(event.currentTarget.dataset.startWidth);
2681
2676
  resize(startWidth + event.clientX - startX);
2682
2677
  };
2683
- return /* @__PURE__ */ jsx18("button", {
2678
+ return /* @__PURE__ */ jsx17("button", {
2684
2679
  "aria-label": store.config.labels.resizeColumn(columnLabel(column)),
2685
2680
  "aria-orientation": "vertical",
2686
2681
  "aria-valuemax": column.colDef.maxWidth ?? DEFAULT_MAX_WIDTH,
@@ -2801,7 +2796,7 @@ var DragHandle = ({
2801
2796
  };
2802
2797
  return /* @__PURE__ */ jsxs9(Fragment, {
2803
2798
  children: [
2804
- /* @__PURE__ */ jsx18(Button, {
2799
+ /* @__PURE__ */ jsx17(Button, {
2805
2800
  "aria-label": store.config.features.reordering && store.config.features.reordering.handleLabel ? store.config.features.reordering.handleLabel : store.config.labels.reorder,
2806
2801
  className: "size-8 cursor-grab touch-none active:cursor-grabbing",
2807
2802
  onClick: (event) => event.stopPropagation(),
@@ -2819,9 +2814,9 @@ var DragHandle = ({
2819
2814
  onPointerUp: finish,
2820
2815
  size: "icon",
2821
2816
  variant: "ghost",
2822
- children: /* @__PURE__ */ jsx18(GripVertical, {})
2817
+ children: /* @__PURE__ */ jsx17(GripVertical, {})
2823
2818
  }),
2824
- overlay ? createPortal(/* @__PURE__ */ jsx18("div", {
2819
+ overlay ? createPortal(/* @__PURE__ */ jsx17("div", {
2825
2820
  "aria-hidden": "true",
2826
2821
  className: "bg-background pointer-events-none fixed z-[100] rounded-md border px-3 py-2 text-sm shadow-lg",
2827
2822
  style: { left: overlay.x + 12, top: overlay.y + 12 },
@@ -2864,36 +2859,36 @@ var TableDataRow = ({
2864
2859
  },
2865
2860
  tabIndex: store.config.onRowClicked ? 0 : undefined,
2866
2861
  children: [
2867
- selection ? /* @__PURE__ */ jsx18(TableCell, {
2862
+ selection ? /* @__PURE__ */ jsx17(TableCell, {
2868
2863
  className: "w-10 pr-0",
2869
2864
  onClick: (event) => event.stopPropagation(),
2870
- children: /* @__PURE__ */ jsx18(Checkbox, {
2865
+ children: /* @__PURE__ */ jsx17(Checkbox, {
2871
2866
  "aria-label": store.config.labels.selectRow,
2872
2867
  checked: !!store.state.rowSelection[row.id],
2873
2868
  disabled: !selectable,
2874
2869
  onCheckedChange: (checked) => toggleRow(store, setStore, row.id, checked)
2875
2870
  })
2876
2871
  }) : null,
2877
- draggable ? /* @__PURE__ */ jsx18(TableCell, {
2872
+ draggable ? /* @__PURE__ */ jsx17(TableCell, {
2878
2873
  className: "w-10 pr-0",
2879
- children: /* @__PURE__ */ jsx18(DragHandle, {
2874
+ children: /* @__PURE__ */ jsx17(DragHandle, {
2880
2875
  tableAtom
2881
2876
  })
2882
2877
  }) : null,
2883
- model.visibleColumns.map((column) => /* @__PURE__ */ jsx18(TableCell, {
2884
- className: cn("min-w-24 overflow-hidden", column.colDef.truncate ? "whitespace-nowrap" : "whitespace-normal"),
2878
+ model.visibleColumns.map((column) => /* @__PURE__ */ jsx17(TableCell, {
2879
+ className: cn("min-w-24 overflow-hidden has-[[data-slot=data-table-relationship-cell]]:relative has-[[data-slot=data-table-relationship-cell]]:p-0", column.colDef.truncate ? "whitespace-nowrap" : "whitespace-normal"),
2885
2880
  style: { width: column.width },
2886
- children: /* @__PURE__ */ jsx18("div", {
2881
+ children: /* @__PURE__ */ jsx17("div", {
2887
2882
  className: cn("min-w-0", column.colDef.truncate && "truncate"),
2888
2883
  children: renderCell(row, column)
2889
2884
  })
2890
2885
  }, column.id)),
2891
- hasRowActionMenu(store) ? /* @__PURE__ */ jsx18(TableCell, {
2886
+ hasRowActionMenu(store) ? /* @__PURE__ */ jsx17(TableCell, {
2892
2887
  className: "bg-background group-data-[state=selected]/row:bg-muted sticky right-0 z-20 w-10 min-w-10 cursor-default p-0 transition-colors group-hover/row:bg-[color-mix(in_oklab,var(--muted)_50%,var(--background))]",
2893
2888
  onClick: (event) => event.stopPropagation(),
2894
- children: /* @__PURE__ */ jsx18("div", {
2889
+ children: /* @__PURE__ */ jsx17("div", {
2895
2890
  className: "flex h-16 items-center justify-center",
2896
- children: /* @__PURE__ */ jsx18(DataTableRowActionMenu, {
2891
+ children: /* @__PURE__ */ jsx17(DataTableRowActionMenu, {
2897
2892
  tableAtom
2898
2893
  })
2899
2894
  })
@@ -2911,23 +2906,23 @@ var GroupActions = ({
2911
2906
  return null;
2912
2907
  return /* @__PURE__ */ jsxs9(DropdownMenu, {
2913
2908
  children: [
2914
- /* @__PURE__ */ jsx18(DropdownMenuTrigger, {
2909
+ /* @__PURE__ */ jsx17(DropdownMenuTrigger, {
2915
2910
  onClick: (event) => event.stopPropagation(),
2916
2911
  render: /* @__PURE__ */ jsxs9(Button, {
2917
2912
  size: "icon",
2918
2913
  variant: "ghost",
2919
2914
  children: [
2920
- /* @__PURE__ */ jsx18("span", {
2915
+ /* @__PURE__ */ jsx17("span", {
2921
2916
  className: "sr-only",
2922
2917
  children: title
2923
2918
  }),
2924
- /* @__PURE__ */ jsx18(MoreHorizontal, {})
2919
+ /* @__PURE__ */ jsx17(MoreHorizontal, {})
2925
2920
  ]
2926
2921
  })
2927
2922
  }),
2928
- /* @__PURE__ */ jsx18(DropdownMenuContent, {
2923
+ /* @__PURE__ */ jsx17(DropdownMenuContent, {
2929
2924
  align: "end",
2930
- children: /* @__PURE__ */ jsx18(DropdownMenuGroup, {
2925
+ children: /* @__PURE__ */ jsx17(DropdownMenuGroup, {
2931
2926
  children: visible.map((action) => /* @__PURE__ */ jsxs9(DropdownMenuItem, {
2932
2927
  onClick: () => action.onClick(groupId),
2933
2928
  variant: action.variant,
@@ -2963,10 +2958,10 @@ var GroupedTable = ({
2963
2958
  className: "data-[drop-target=true]:outline-primary relative data-[drop-target=true]:z-30 data-[drop-target=true]:outline-2 data-[drop-target=true]:-outline-offset-2 data-[drop-target=true]:[&>tr]:border-transparent data-[drop-target=true]:[&>tr>td:last-child]:z-0",
2964
2959
  "data-table-group": section.field.onMoveToGroup ? targetKey : undefined,
2965
2960
  children: [
2966
- /* @__PURE__ */ jsx18(TableRow, {
2961
+ /* @__PURE__ */ jsx17(TableRow, {
2967
2962
  className: "bg-muted/40 hover:bg-accent! cursor-pointer",
2968
2963
  onClick: toggleCollapsed,
2969
- children: /* @__PURE__ */ jsx18(TableCell, {
2964
+ children: /* @__PURE__ */ jsx17(TableCell, {
2970
2965
  colSpan: model.visibleColumns.length + extra,
2971
2966
  children: /* @__PURE__ */ jsxs9("div", {
2972
2967
  className: "flex items-center gap-2",
@@ -2977,22 +2972,22 @@ var GroupedTable = ({
2977
2972
  className: "flex flex-1 cursor-pointer items-center gap-2 text-left font-medium",
2978
2973
  type: "button",
2979
2974
  children: [
2980
- collapsed ? /* @__PURE__ */ jsx18(ChevronRight2, {
2975
+ collapsed ? /* @__PURE__ */ jsx17(ChevronRight2, {
2981
2976
  className: "size-4"
2982
- }) : /* @__PURE__ */ jsx18(ChevronDown, {
2977
+ }) : /* @__PURE__ */ jsx17(ChevronDown, {
2983
2978
  className: "size-4"
2984
2979
  }),
2985
- /* @__PURE__ */ jsx18("span", {
2980
+ /* @__PURE__ */ jsx17("span", {
2986
2981
  className: "flex-1",
2987
2982
  children: section.field.renderGroupLabel?.(section.groupId, section.rows.map((row) => row.data)) ?? section.groupId
2988
2983
  })
2989
2984
  ]
2990
2985
  }),
2991
- /* @__PURE__ */ jsx18(Badge, {
2986
+ /* @__PURE__ */ jsx17(Badge, {
2992
2987
  variant: "secondary",
2993
2988
  children: section.rows.length
2994
2989
  }),
2995
- /* @__PURE__ */ jsx18(GroupActions, {
2990
+ /* @__PURE__ */ jsx17(GroupActions, {
2996
2991
  actions: section.field.actions,
2997
2992
  groupId: section.groupId,
2998
2993
  title: section.field.actionsLabel ?? store.config.labels.actions
@@ -3001,14 +2996,14 @@ var GroupedTable = ({
3001
2996
  })
3002
2997
  })
3003
2998
  }),
3004
- !collapsed && !section.children.length ? section.rows.length ? section.rows.map((row) => /* @__PURE__ */ jsx18(RowIdContext.Provider, {
2999
+ !collapsed && !section.children.length ? section.rows.length ? section.rows.map((row) => /* @__PURE__ */ jsx17(RowIdContext.Provider, {
3005
3000
  value: row.id,
3006
- children: /* @__PURE__ */ jsx18(TableDataRow, {
3001
+ children: /* @__PURE__ */ jsx17(TableDataRow, {
3007
3002
  tableAtom
3008
3003
  })
3009
3004
  }, `${section.key}:${row.id}`)) : [
3010
- /* @__PURE__ */ jsx18(TableRow, {
3011
- children: /* @__PURE__ */ jsx18(TableCell, {
3005
+ /* @__PURE__ */ jsx17(TableRow, {
3006
+ children: /* @__PURE__ */ jsx17(TableCell, {
3012
3007
  className: "text-muted-foreground h-16",
3013
3008
  colSpan: model.visibleColumns.length + extra,
3014
3009
  children: section.field.renderEmptyGroup?.(section.groupId) ?? store.config.labels.empty
@@ -3019,7 +3014,7 @@ var GroupedTable = ({
3019
3014
  }, section.key);
3020
3015
  return !collapsed && section.children.length ? [body, renderSections(section.children)] : [body];
3021
3016
  });
3022
- return /* @__PURE__ */ jsx18(Fragment, {
3017
+ return /* @__PURE__ */ jsx17(Fragment, {
3023
3018
  children: renderSections(sections)
3024
3019
  });
3025
3020
  };
@@ -3042,29 +3037,29 @@ var ColumnHeaderMenu = ({
3042
3037
  }));
3043
3038
  const label = columnLabel(column);
3044
3039
  if (!sortingEnabled && !hidingEnabled) {
3045
- return /* @__PURE__ */ jsx18("div", {
3040
+ return /* @__PURE__ */ jsx17("div", {
3046
3041
  className: "truncate",
3047
3042
  children: column.colDef.headerName
3048
3043
  });
3049
3044
  }
3050
3045
  return /* @__PURE__ */ jsxs9(DropdownMenu, {
3051
3046
  children: [
3052
- /* @__PURE__ */ jsx18(DropdownMenuTrigger, {
3047
+ /* @__PURE__ */ jsx17(DropdownMenuTrigger, {
3053
3048
  render: /* @__PURE__ */ jsxs9(Button, {
3054
3049
  "aria-label": label,
3055
3050
  className: "h-8 max-w-full justify-start px-2",
3056
3051
  size: "sm",
3057
3052
  variant: "ghost",
3058
3053
  children: [
3059
- /* @__PURE__ */ jsx18("span", {
3054
+ /* @__PURE__ */ jsx17("span", {
3060
3055
  className: "truncate",
3061
3056
  children: column.colDef.headerName
3062
3057
  }),
3063
- sort ? sort.direction === "desc" ? /* @__PURE__ */ jsx18(ArrowDown, {}) : /* @__PURE__ */ jsx18(ArrowUp, {}) : sortingEnabled ? /* @__PURE__ */ jsx18(ChevronsUpDown2, {}) : null
3058
+ sort ? sort.direction === "desc" ? /* @__PURE__ */ jsx17(ArrowDown, {}) : /* @__PURE__ */ jsx17(ArrowUp, {}) : sortingEnabled ? /* @__PURE__ */ jsx17(ChevronsUpDown2, {}) : null
3064
3059
  ]
3065
3060
  })
3066
3061
  }),
3067
- /* @__PURE__ */ jsx18(DropdownMenuContent, {
3062
+ /* @__PURE__ */ jsx17(DropdownMenuContent, {
3068
3063
  align: "start",
3069
3064
  className: "w-48",
3070
3065
  children: /* @__PURE__ */ jsxs9(DropdownMenuGroup, {
@@ -3074,7 +3069,7 @@ var ColumnHeaderMenu = ({
3074
3069
  /* @__PURE__ */ jsxs9(DropdownMenuItem, {
3075
3070
  onClick: () => setSort("asc"),
3076
3071
  children: [
3077
- /* @__PURE__ */ jsx18(ArrowUp, {}),
3072
+ /* @__PURE__ */ jsx17(ArrowUp, {}),
3078
3073
  " ",
3079
3074
  store.config.labels.sortAsc
3080
3075
  ]
@@ -3082,7 +3077,7 @@ var ColumnHeaderMenu = ({
3082
3077
  /* @__PURE__ */ jsxs9(DropdownMenuItem, {
3083
3078
  onClick: () => setSort("desc"),
3084
3079
  children: [
3085
- /* @__PURE__ */ jsx18(ArrowDown, {}),
3080
+ /* @__PURE__ */ jsx17(ArrowDown, {}),
3086
3081
  " ",
3087
3082
  store.config.labels.sortDesc
3088
3083
  ]
@@ -3093,14 +3088,14 @@ var ColumnHeaderMenu = ({
3093
3088
  sort: state.sort?.filter(({ id }) => id !== column.id)
3094
3089
  })),
3095
3090
  children: [
3096
- /* @__PURE__ */ jsx18(X2, {}),
3091
+ /* @__PURE__ */ jsx17(X2, {}),
3097
3092
  " ",
3098
3093
  store.config.labels.sortClear
3099
3094
  ]
3100
3095
  }) : null
3101
3096
  ]
3102
3097
  }) : null,
3103
- sortingEnabled && hidingEnabled ? /* @__PURE__ */ jsx18(DropdownMenuSeparator, {}) : null,
3098
+ sortingEnabled && hidingEnabled ? /* @__PURE__ */ jsx17(DropdownMenuSeparator, {}) : null,
3104
3099
  hidingEnabled ? /* @__PURE__ */ jsxs9(DropdownMenuItem, {
3105
3100
  onClick: () => update((state) => ({
3106
3101
  ...state,
@@ -3110,7 +3105,7 @@ var ColumnHeaderMenu = ({
3110
3105
  }
3111
3106
  })),
3112
3107
  children: [
3113
- /* @__PURE__ */ jsx18(EyeOff, {}),
3108
+ /* @__PURE__ */ jsx17(EyeOff, {}),
3114
3109
  " ",
3115
3110
  store.config.labels.hideColumn
3116
3111
  ]
@@ -3132,12 +3127,12 @@ var DataTableHeader = ({
3132
3127
  const selectableRows = getDataTableSelectableRows(model, grouped, selection ? selection.isRowSelectable : undefined);
3133
3128
  const allSelected = selectableRows.length > 0 && selectableRows.every((row) => store.state.rowSelection[row.id]);
3134
3129
  const someSelected = selectableRows.some((row) => store.state.rowSelection[row.id]);
3135
- return /* @__PURE__ */ jsx18(TableHeader, {
3130
+ return /* @__PURE__ */ jsx17(TableHeader, {
3136
3131
  children: /* @__PURE__ */ jsxs9(TableRow, {
3137
3132
  children: [
3138
- selection ? /* @__PURE__ */ jsx18(TableHead, {
3133
+ selection ? /* @__PURE__ */ jsx17(TableHead, {
3139
3134
  className: "w-10 pr-0",
3140
- children: /* @__PURE__ */ jsx18(Checkbox, {
3135
+ children: /* @__PURE__ */ jsx17(Checkbox, {
3141
3136
  "aria-label": store.config.labels.selectAllRows,
3142
3137
  checked: allSelected,
3143
3138
  indeterminate: someSelected && !allSelected,
@@ -3151,27 +3146,27 @@ var DataTableHeader = ({
3151
3146
  }
3152
3147
  })
3153
3148
  }) : null,
3154
- draggable ? /* @__PURE__ */ jsx18(TableHead, {
3149
+ draggable ? /* @__PURE__ */ jsx17(TableHead, {
3155
3150
  className: "w-10"
3156
3151
  }) : null,
3157
3152
  model.visibleColumns.map((column) => {
3158
- return /* @__PURE__ */ jsx18(TableHead, {
3153
+ return /* @__PURE__ */ jsx17(TableHead, {
3159
3154
  className: "relative h-12",
3160
3155
  style: { width: column.width },
3161
3156
  children: /* @__PURE__ */ jsxs9(ColumnIdContext.Provider, {
3162
3157
  value: column.id,
3163
3158
  children: [
3164
- /* @__PURE__ */ jsx18(ColumnHeaderMenu, {
3159
+ /* @__PURE__ */ jsx17(ColumnHeaderMenu, {
3165
3160
  tableAtom
3166
3161
  }),
3167
- /* @__PURE__ */ jsx18(ResizeHandle, {
3162
+ /* @__PURE__ */ jsx17(ResizeHandle, {
3168
3163
  tableAtom
3169
3164
  })
3170
3165
  ]
3171
3166
  })
3172
3167
  }, column.id);
3173
3168
  }),
3174
- hasRowActionMenu(store) ? /* @__PURE__ */ jsx18(TableHead, {
3169
+ hasRowActionMenu(store) ? /* @__PURE__ */ jsx17(TableHead, {
3175
3170
  className: "w-10"
3176
3171
  }) : null
3177
3172
  ]
@@ -3187,28 +3182,28 @@ var DataTableBody = ({
3187
3182
  const rows = grouped ? model.sortedRows : model.pageRows;
3188
3183
  const colSpan = model.visibleColumns.length + (store.config.features.selection ? 1 : 0) + (hasRowActionMenu(store) ? 1 : 0) + (canDragRows(store) ? 1 : 0);
3189
3184
  if (grouped && rows.length && !store.config.status.error) {
3190
- return /* @__PURE__ */ jsx18(GroupedTable, {
3185
+ return /* @__PURE__ */ jsx17(GroupedTable, {
3191
3186
  tableAtom
3192
3187
  });
3193
3188
  }
3194
- return /* @__PURE__ */ jsx18(TableBody, {
3195
- children: store.config.status.error || !rows.length && !store.config.status.loading ? /* @__PURE__ */ jsx18(TableRow, {
3196
- children: /* @__PURE__ */ jsx18(TableCell, {
3189
+ return /* @__PURE__ */ jsx17(TableBody, {
3190
+ children: store.config.status.error || !rows.length && !store.config.status.loading ? /* @__PURE__ */ jsx17(TableRow, {
3191
+ children: /* @__PURE__ */ jsx17(TableCell, {
3197
3192
  className: "h-24 text-center",
3198
3193
  colSpan: Math.max(colSpan, 1),
3199
3194
  children: store.config.status.error ?? store.config.status.empty ?? store.config.labels.empty
3200
3195
  })
3201
- }) : store.config.status.loading && !rows.length ? /* @__PURE__ */ jsx18(TableRow, {
3202
- children: /* @__PURE__ */ jsx18(TableCell, {
3196
+ }) : store.config.status.loading && !rows.length ? /* @__PURE__ */ jsx17(TableRow, {
3197
+ children: /* @__PURE__ */ jsx17(TableCell, {
3203
3198
  className: "h-24 text-center",
3204
3199
  colSpan: Math.max(colSpan, 1),
3205
- children: /* @__PURE__ */ jsx18(Loading, {
3200
+ children: /* @__PURE__ */ jsx17(Loading, {
3206
3201
  label: store.config.labels.loading
3207
3202
  })
3208
3203
  })
3209
- }) : rows.map((row) => /* @__PURE__ */ jsx18(RowIdContext.Provider, {
3204
+ }) : rows.map((row) => /* @__PURE__ */ jsx17(RowIdContext.Provider, {
3210
3205
  value: row.id,
3211
- children: /* @__PURE__ */ jsx18(TableDataRow, {
3206
+ children: /* @__PURE__ */ jsx17(TableDataRow, {
3212
3207
  tableAtom
3213
3208
  })
3214
3209
  }, row.id))
@@ -3231,7 +3226,7 @@ var GalleryCard = ({
3231
3226
  const selection = store.config.features.selection;
3232
3227
  const selectable = !!selection && (selection.isRowSelectable?.(row.data) ?? true);
3233
3228
  const draggable = canDragRows(store);
3234
- return /* @__PURE__ */ jsx18(Card, {
3229
+ return /* @__PURE__ */ jsx17(Card, {
3235
3230
  className: cn("relative gap-3 data-[drag-source=true]:opacity-40 data-[drop-position=before]:border-t-2 data-[drop-position=before]:border-t-primary data-[drop-position=after]:border-b-2 data-[drop-position=after]:border-b-primary", store.config.onRowClicked && "cursor-pointer"),
3236
3231
  "data-table-row": row.id,
3237
3232
  onClick: () => store.config.onRowClicked?.(row.data),
@@ -3248,14 +3243,14 @@ var GalleryCard = ({
3248
3243
  /* @__PURE__ */ jsxs9("div", {
3249
3244
  className: "flex items-center gap-2",
3250
3245
  children: [
3251
- selection ? /* @__PURE__ */ jsx18(Checkbox, {
3246
+ selection ? /* @__PURE__ */ jsx17(Checkbox, {
3252
3247
  "aria-label": store.config.labels.selectRow,
3253
3248
  checked: !!store.state.rowSelection[row.id],
3254
3249
  disabled: !selectable,
3255
3250
  onCheckedChange: (checked) => toggleRow(store, setStore, row.id, checked),
3256
3251
  onClick: (event) => event.stopPropagation()
3257
3252
  }) : null,
3258
- draggable ? /* @__PURE__ */ jsx18(DragHandle, {
3253
+ draggable ? /* @__PURE__ */ jsx17(DragHandle, {
3259
3254
  tableAtom
3260
3255
  }) : null,
3261
3256
  tag ? /* @__PURE__ */ jsxs9(Badge, {
@@ -3267,17 +3262,17 @@ var GalleryCard = ({
3267
3262
  }) : null
3268
3263
  ]
3269
3264
  }),
3270
- /* @__PURE__ */ jsx18(CardTitle, {
3265
+ /* @__PURE__ */ jsx17(CardTitle, {
3271
3266
  children: name ? renderCell(row, name) : row.id
3272
3267
  }),
3273
- description ? /* @__PURE__ */ jsx18("div", {
3268
+ description ? /* @__PURE__ */ jsx17("div", {
3274
3269
  className: "text-muted-foreground line-clamp-3 text-sm",
3275
3270
  children: renderCell(row, description)
3276
3271
  }) : null,
3277
- hasRowActionMenu(store) ? /* @__PURE__ */ jsx18("div", {
3272
+ hasRowActionMenu(store) ? /* @__PURE__ */ jsx17("div", {
3278
3273
  className: "absolute top-4 right-4",
3279
3274
  onClick: (event) => event.stopPropagation(),
3280
- children: /* @__PURE__ */ jsx18(DataTableRowActionMenu, {
3275
+ children: /* @__PURE__ */ jsx17(DataTableRowActionMenu, {
3281
3276
  tableAtom
3282
3277
  })
3283
3278
  }) : null
@@ -3293,31 +3288,31 @@ var DataTableGallery = ({
3293
3288
  const fields = getActiveGrouping(store);
3294
3289
  const rows = fields.length ? model.sortedRows : model.pageRows;
3295
3290
  if (store.config.status.error) {
3296
- return /* @__PURE__ */ jsx18("div", {
3291
+ return /* @__PURE__ */ jsx17("div", {
3297
3292
  className: "text-destructive rounded-lg border border-dashed p-10 text-center",
3298
3293
  children: store.config.status.error
3299
3294
  });
3300
3295
  }
3301
3296
  if (store.config.status.loading && !rows.length) {
3302
- return /* @__PURE__ */ jsx18("div", {
3297
+ return /* @__PURE__ */ jsx17("div", {
3303
3298
  className: "rounded-lg border border-dashed p-10 text-center",
3304
- children: /* @__PURE__ */ jsx18(Loading, {
3299
+ children: /* @__PURE__ */ jsx17(Loading, {
3305
3300
  label: store.config.labels.loading
3306
3301
  })
3307
3302
  });
3308
3303
  }
3309
3304
  if (!rows.length) {
3310
- return /* @__PURE__ */ jsx18("div", {
3305
+ return /* @__PURE__ */ jsx17("div", {
3311
3306
  className: "text-muted-foreground rounded-lg border border-dashed p-10 text-center",
3312
3307
  children: store.config.status.empty ?? store.config.labels.empty
3313
3308
  });
3314
3309
  }
3315
3310
  if (!fields.length) {
3316
- return /* @__PURE__ */ jsx18("div", {
3311
+ return /* @__PURE__ */ jsx17("div", {
3317
3312
  className: "grid gap-3 sm:grid-cols-2 xl:grid-cols-3",
3318
- children: rows.map((row) => /* @__PURE__ */ jsx18(RowIdContext.Provider, {
3313
+ children: rows.map((row) => /* @__PURE__ */ jsx17(RowIdContext.Provider, {
3319
3314
  value: row.id,
3320
- children: /* @__PURE__ */ jsx18(GalleryCard, {
3315
+ children: /* @__PURE__ */ jsx17(GalleryCard, {
3321
3316
  tableAtom
3322
3317
  })
3323
3318
  }, row.id))
@@ -3346,44 +3341,44 @@ var DataTableGallery = ({
3346
3341
  className: "flex flex-1 cursor-pointer items-center gap-2 text-left font-medium",
3347
3342
  type: "button",
3348
3343
  children: [
3349
- collapsed ? /* @__PURE__ */ jsx18(ChevronRight2, {
3344
+ collapsed ? /* @__PURE__ */ jsx17(ChevronRight2, {
3350
3345
  className: "size-4"
3351
- }) : /* @__PURE__ */ jsx18(ChevronDown, {
3346
+ }) : /* @__PURE__ */ jsx17(ChevronDown, {
3352
3347
  className: "size-4"
3353
3348
  }),
3354
- /* @__PURE__ */ jsx18("span", {
3349
+ /* @__PURE__ */ jsx17("span", {
3355
3350
  className: "flex-1",
3356
3351
  children: section.field.renderGroupLabel?.(section.groupId, section.rows.map((row) => row.data)) ?? section.groupId
3357
3352
  }),
3358
- /* @__PURE__ */ jsx18(Badge, {
3353
+ /* @__PURE__ */ jsx17(Badge, {
3359
3354
  variant: "secondary",
3360
3355
  children: section.rows.length
3361
3356
  })
3362
3357
  ]
3363
3358
  }),
3364
- /* @__PURE__ */ jsx18(GroupActions, {
3359
+ /* @__PURE__ */ jsx17(GroupActions, {
3365
3360
  actions: section.field.actions,
3366
3361
  groupId: section.groupId,
3367
3362
  title: section.field.actionsLabel ?? store.config.labels.actions
3368
3363
  })
3369
3364
  ]
3370
3365
  }),
3371
- !collapsed ? section.children.length ? renderSections(section.children) : section.rows.length ? /* @__PURE__ */ jsx18("div", {
3366
+ !collapsed ? section.children.length ? renderSections(section.children) : section.rows.length ? /* @__PURE__ */ jsx17("div", {
3372
3367
  className: "grid gap-3 sm:grid-cols-2 xl:grid-cols-3",
3373
- children: section.rows.map((row) => /* @__PURE__ */ jsx18(RowIdContext.Provider, {
3368
+ children: section.rows.map((row) => /* @__PURE__ */ jsx17(RowIdContext.Provider, {
3374
3369
  value: row.id,
3375
- children: /* @__PURE__ */ jsx18(GalleryCard, {
3370
+ children: /* @__PURE__ */ jsx17(GalleryCard, {
3376
3371
  tableAtom
3377
3372
  })
3378
3373
  }, `${section.key}:${row.id}`))
3379
- }) : /* @__PURE__ */ jsx18("div", {
3374
+ }) : /* @__PURE__ */ jsx17("div", {
3380
3375
  className: "text-muted-foreground rounded-lg border border-dashed p-8 text-center",
3381
3376
  children: section.field.renderEmptyGroup?.(section.groupId) ?? store.config.labels.empty
3382
3377
  }) : null
3383
3378
  ]
3384
3379
  }, section.key);
3385
3380
  });
3386
- return /* @__PURE__ */ jsx18("div", {
3381
+ return /* @__PURE__ */ jsx17("div", {
3387
3382
  className: "space-y-4",
3388
3383
  children: renderSections(groupDataTableRows(rows, fields))
3389
3384
  });
@@ -3410,9 +3405,9 @@ var DataTablePagination = ({
3410
3405
  return null;
3411
3406
  const selected = model.rows.filter((row) => store.state.rowSelection[row.id]).length;
3412
3407
  const setPagination = (next) => changeState(setStore, (state) => ({ ...state, ...next }));
3413
- return /* @__PURE__ */ jsx18("div", {
3408
+ return /* @__PURE__ */ jsx17("div", {
3414
3409
  className: "pt-4",
3415
- children: /* @__PURE__ */ jsx18(Pagination, {
3410
+ children: /* @__PURE__ */ jsx17(Pagination, {
3416
3411
  messages: store.config.labels,
3417
3412
  onPageChange: (page) => setPagination({ page, pageSize: store.state.pageSize }),
3418
3413
  onPageSizeChange: (pageSize) => setPagination({ page: 0, pageSize }),
@@ -3504,13 +3499,13 @@ var HydratedDataTable = ({
3504
3499
  className: "w-full max-w-full min-w-0 rounded-md",
3505
3500
  "data-table-root": "",
3506
3501
  children: [
3507
- /* @__PURE__ */ jsx18(DataTableToolbar, {
3502
+ /* @__PURE__ */ jsx17(DataTableToolbar, {
3508
3503
  tableAtom
3509
3504
  }),
3510
- /* @__PURE__ */ jsx18(DataTableContent, {
3505
+ /* @__PURE__ */ jsx17(DataTableContent, {
3511
3506
  tableAtom
3512
3507
  }),
3513
- /* @__PURE__ */ jsx18(DataTablePagination, {
3508
+ /* @__PURE__ */ jsx17(DataTablePagination, {
3514
3509
  tableAtom
3515
3510
  })
3516
3511
  ]
@@ -3532,13 +3527,13 @@ var DataTable = (props) => {
3532
3527
  }
3533
3528
  const [persistedUiResult, setPersistedUiState] = useAtom(persistedUiAtomRef.current);
3534
3529
  if (!AsyncResult.isSuccess(persistedUiResult) || AsyncResult.isWaiting(persistedUiResult)) {
3535
- return /* @__PURE__ */ jsx18("div", {
3530
+ return /* @__PURE__ */ jsx17("div", {
3536
3531
  "aria-busy": "true",
3537
3532
  className: "invisible w-full max-w-full min-w-0 rounded-md",
3538
3533
  "data-table-root": ""
3539
3534
  });
3540
3535
  }
3541
- return /* @__PURE__ */ jsx18(HydratedDataTable, {
3536
+ return /* @__PURE__ */ jsx17(HydratedDataTable, {
3542
3537
  ...props,
3543
3538
  persistedUiState: persistedUiResult.value,
3544
3539
  setPersistedUiState
@@ -3549,7 +3544,7 @@ var DataTableContent = ({
3549
3544
  }) => {
3550
3545
  const [store] = useTableAtom(tableAtom);
3551
3546
  if (store.config.features.gallery && store.state.view === "gallery") {
3552
- return /* @__PURE__ */ jsx18(DataTableGallery, {
3547
+ return /* @__PURE__ */ jsx17(DataTableGallery, {
3553
3548
  tableAtom
3554
3549
  });
3555
3550
  }
@@ -3562,15 +3557,15 @@ var DataTableContent = ({
3562
3557
  className: "table-fixed",
3563
3558
  style: { width: `max(100%, ${width}px)` },
3564
3559
  children: [
3565
- /* @__PURE__ */ jsx18(DataTableHeader, {
3560
+ /* @__PURE__ */ jsx17(DataTableHeader, {
3566
3561
  tableAtom
3567
3562
  }),
3568
- /* @__PURE__ */ jsx18(DataTableBody, {
3563
+ /* @__PURE__ */ jsx17(DataTableBody, {
3569
3564
  tableAtom
3570
3565
  })
3571
3566
  ]
3572
3567
  }),
3573
- /* @__PURE__ */ jsx18(ScrollBar, {
3568
+ /* @__PURE__ */ jsx17(ScrollBar, {
3574
3569
  orientation: "horizontal"
3575
3570
  })
3576
3571
  ]
@@ -3587,33 +3582,39 @@ var DataTableRelationshipCell = ({
3587
3582
  const [selected, setSelected] = useState([...value]);
3588
3583
  useLayoutEffect(() => setSelected([...value]), [value]);
3589
3584
  const selectedValues = new Set(selected.map((item) => item.value));
3590
- return /* @__PURE__ */ jsx18(VirtualizedCombobox, {
3591
- ariaLabel: manageLabel,
3592
- emptyLabel,
3593
- items: [...options].sort((left, right) => Number(selectedValues.has(right.value)) - Number(selectedValues.has(left.value))),
3594
- messages: { search: manageLabel },
3595
- multiple: true,
3596
- onValueChange: (next) => {
3597
- const nextValues = new Set(next.map((item) => item.value));
3598
- selected.forEach((item) => !nextValues.has(item.value) && onRemove?.(item.value));
3599
- next.forEach((item) => !selectedValues.has(item.value) && onAdd?.(item.value));
3600
- setSelected(next);
3601
- },
3602
- placeholder: emptyLabel,
3603
- trigger: /* @__PURE__ */ jsxs9(Button, {
3604
- className: "h-full min-h-16 w-full justify-between rounded-none",
3605
- variant: "ghost",
3606
- children: [
3607
- /* @__PURE__ */ jsx18(DataTableListSummary, {
3608
- emptyLabel,
3609
- expandable: false,
3610
- items: selected,
3611
- variant: selected.some((item) => item.icon) ? "icon" : "text"
3612
- }),
3613
- /* @__PURE__ */ jsx18(ChevronDown, {})
3614
- ]
3615
- }),
3616
- value: selected
3585
+ return /* @__PURE__ */ jsx17("div", {
3586
+ "data-slot": "data-table-relationship-cell",
3587
+ className: "h-full in-[[data-slot=table-cell]]:absolute in-[[data-slot=table-cell]]:inset-0",
3588
+ onClick: (event) => event.stopPropagation(),
3589
+ onPointerDown: (event) => event.stopPropagation(),
3590
+ children: /* @__PURE__ */ jsx17(VirtualizedCombobox, {
3591
+ ariaLabel: manageLabel,
3592
+ emptyLabel,
3593
+ items: [...options].sort((left, right) => Number(selectedValues.has(right.value)) - Number(selectedValues.has(left.value))),
3594
+ messages: { search: manageLabel },
3595
+ multiple: true,
3596
+ onValueChange: (next) => {
3597
+ const nextValues = new Set(next.map((item) => item.value));
3598
+ selected.forEach((item) => !nextValues.has(item.value) && onRemove?.(item.value));
3599
+ next.forEach((item) => !selectedValues.has(item.value) && onAdd?.(item.value));
3600
+ setSelected(next);
3601
+ },
3602
+ placeholder: emptyLabel,
3603
+ trigger: /* @__PURE__ */ jsxs9(Button, {
3604
+ className: "h-full min-h-16 w-full justify-between rounded-none",
3605
+ variant: "ghost",
3606
+ children: [
3607
+ /* @__PURE__ */ jsx17(DataTableListSummary, {
3608
+ emptyLabel,
3609
+ expandable: false,
3610
+ items: selected,
3611
+ variant: selected.some((item) => item.icon) ? "icon" : "text"
3612
+ }),
3613
+ /* @__PURE__ */ jsx17(ChevronDown, {})
3614
+ ]
3615
+ }),
3616
+ value: selected
3617
+ })
3617
3618
  });
3618
3619
  };
3619
3620
  var DataTableListSummary = ({
@@ -3628,13 +3629,13 @@ var DataTableListSummary = ({
3628
3629
  const labels2 = dataTableMessages();
3629
3630
  const normalized = items.map((item) => Schema.is(Schema.String)(item) ? { label: item } : item);
3630
3631
  if (!normalized.length)
3631
- return /* @__PURE__ */ jsx18("span", {
3632
+ return /* @__PURE__ */ jsx17("span", {
3632
3633
  className: "text-muted-foreground",
3633
3634
  children: emptyLabel
3634
3635
  });
3635
3636
  const visible = normalized.slice(0, visibleCount);
3636
3637
  const remaining = Math.max(totalCount - visible.length, 0);
3637
- const details = /* @__PURE__ */ jsx18(PopoverContent, {
3638
+ const details = /* @__PURE__ */ jsx17(PopoverContent, {
3638
3639
  align: "start",
3639
3640
  className: "max-h-72 w-72 overflow-y-auto p-2",
3640
3641
  children: normalized.map((item, index) => /* @__PURE__ */ jsxs9("div", {
@@ -3646,27 +3647,27 @@ var DataTableListSummary = ({
3646
3647
  }, item.value ?? `${item.label}-${index}`))
3647
3648
  });
3648
3649
  if (variant === "icon") {
3649
- return /* @__PURE__ */ jsx18(TooltipProvider, {
3650
+ return /* @__PURE__ */ jsx17(TooltipProvider, {
3650
3651
  children: /* @__PURE__ */ jsxs9("span", {
3651
3652
  className: "flex items-center",
3652
3653
  children: [
3653
3654
  visible.map((item) => /* @__PURE__ */ jsxs9(Tooltip, {
3654
3655
  children: [
3655
- /* @__PURE__ */ jsx18(TooltipTrigger, {
3656
- render: /* @__PURE__ */ jsx18("span", {
3656
+ /* @__PURE__ */ jsx17(TooltipTrigger, {
3657
+ render: /* @__PURE__ */ jsx17("span", {
3657
3658
  "aria-label": item.label,
3658
3659
  className: "bg-muted -ml-1 flex size-8 items-center justify-center rounded-full",
3659
3660
  children: item.icon ?? item.label.slice(0, 2).toUpperCase()
3660
3661
  })
3661
3662
  }),
3662
- /* @__PURE__ */ jsx18(TooltipContent, {
3663
+ /* @__PURE__ */ jsx17(TooltipContent, {
3663
3664
  children: item.label
3664
3665
  })
3665
3666
  ]
3666
3667
  }, item.value ?? item.label)),
3667
3668
  remaining && expandable ? /* @__PURE__ */ jsxs9(Popover, {
3668
3669
  children: [
3669
- /* @__PURE__ */ jsx18(PopoverTrigger, {
3670
+ /* @__PURE__ */ jsx17(PopoverTrigger, {
3670
3671
  render: /* @__PURE__ */ jsxs9("button", {
3671
3672
  "aria-label": labels2.listOthers(remaining),
3672
3673
  className: "bg-muted -ml-1 flex size-8 items-center justify-center rounded-full",
@@ -3698,8 +3699,8 @@ var DataTableListSummary = ({
3698
3699
  });
3699
3700
  return remaining && expandable ? /* @__PURE__ */ jsxs9(Popover, {
3700
3701
  children: [
3701
- /* @__PURE__ */ jsx18(PopoverTrigger, {
3702
- render: /* @__PURE__ */ jsx18("button", {
3702
+ /* @__PURE__ */ jsx17(PopoverTrigger, {
3703
+ render: /* @__PURE__ */ jsx17("button", {
3703
3704
  className: "text-left text-sm",
3704
3705
  type: "button",
3705
3706
  children: summary
@@ -3707,26 +3708,26 @@ var DataTableListSummary = ({
3707
3708
  }),
3708
3709
  details
3709
3710
  ]
3710
- }) : /* @__PURE__ */ jsx18("span", {
3711
+ }) : /* @__PURE__ */ jsx17("span", {
3711
3712
  className: "text-sm",
3712
3713
  children: summary
3713
3714
  });
3714
3715
  };
3715
3716
  export {
3716
- sortDataTableRows,
3717
- reorderDataTableRows,
3718
- paginateDataTableRows,
3719
- normalizeDataTableColumns,
3720
- groupDataTableRows,
3721
- getDataTableWidth,
3722
- getDataTableSelectableRows,
3723
- filterDataTableRows,
3724
- downloadJson,
3725
- downloadCsv,
3726
- dataTableMessages,
3727
- buildDataTableRows,
3728
- DataTableRowActions,
3729
- DataTableRelationshipCell,
3717
+ DataTable,
3730
3718
  DataTableListSummary,
3731
- DataTable
3719
+ DataTableRelationshipCell,
3720
+ DataTableRowActions,
3721
+ buildDataTableRows,
3722
+ dataTableMessages,
3723
+ downloadCsv,
3724
+ downloadJson,
3725
+ filterDataTableRows,
3726
+ getDataTableSelectableRows,
3727
+ getDataTableWidth,
3728
+ groupDataTableRows,
3729
+ normalizeDataTableColumns,
3730
+ paginateDataTableRows,
3731
+ reorderDataTableRows,
3732
+ sortDataTableRows
3732
3733
  };