@mechane-ai/elements 0.35.1 → 0.36.0

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 (39) hide show
  1. package/dist/ai.js +4 -4
  2. package/dist/chart-frame-C0UBu4ku.js +213 -0
  3. package/dist/{chart-input-CN8PMrni.js → chart-input-Ccr2NJ6J.js} +2 -2
  4. package/dist/{categorical-values-DpnNvPkc.js → chart-theme-Bwr9YSP1.js} +56 -5
  5. package/dist/charts/cartesian.js +613 -616
  6. package/dist/charts/distribution.js +77 -76
  7. package/dist/charts/graph.js +29 -28
  8. package/dist/charts/hierarchy.js +32 -31
  9. package/dist/charts/matrix.js +48 -47
  10. package/dist/charts/timeline.js +2 -2
  11. package/dist/charts.js +3 -1
  12. package/dist/collections.js +314 -267
  13. package/dist/elements.css +14 -0
  14. package/dist/feedback.js +1 -1
  15. package/dist/forms/dates.js +86 -63
  16. package/dist/forms.js +2 -2
  17. package/dist/packages/charts/src/cartesian/bar-data.d.ts +1 -1
  18. package/dist/packages/charts/src/cartesian/scatter-plot.d.ts +1 -1
  19. package/dist/packages/charts/src/cartesian/time-series-data.d.ts +1 -1
  20. package/dist/packages/charts/src/categorical-values.d.ts +1 -1
  21. package/dist/packages/charts/src/chart-series-marker.d.ts +7 -0
  22. package/dist/packages/charts/src/chart-theme.d.ts +1 -2
  23. package/dist/packages/charts/src/distribution/ecdf.d.ts +1 -1
  24. package/dist/packages/charts/src/distribution/histogram.d.ts +1 -1
  25. package/dist/packages/charts/src/distribution/interval-plot.d.ts +1 -1
  26. package/dist/packages/charts/src/distribution/ranked-bars.d.ts +1 -1
  27. package/dist/packages/charts/src/graph/relation-graph.d.ts +1 -1
  28. package/dist/packages/charts/src/index.d.ts +4 -2
  29. package/dist/packages/collections/src/data-table.d.ts +6 -4
  30. package/dist/packages/feedback/src/progress.d.ts +8 -2
  31. package/dist/packages/forms/src/dates/civil.d.ts +6 -4
  32. package/dist/packages/forms/src/dates/index.d.ts +1 -0
  33. package/dist/packages/forms/src/index.d.ts +2 -0
  34. package/dist/packages/forms/src/select-control.d.ts +26 -0
  35. package/dist/packages/foundations/src/chart-tones.d.ts +2 -0
  36. package/dist/{src-BYKjPC-0.js → src-CoFxE4Cj.js} +282 -227
  37. package/dist/{src-BHllGfI8.js → src-DXdsMc_Z.js} +415 -307
  38. package/package.json +1 -1
  39. package/dist/chart-frame-BV0IPZtQ.js +0 -270
@@ -1,20 +1,20 @@
1
1
  import { T as e, _ as t, c as n, p as r, w as i } from "./src-C-Sx37kz.js";
2
- import { r as a } from "./src-BYKjPC-0.js";
2
+ import { r as a } from "./src-CoFxE4Cj.js";
3
3
  import { t as o } from "./header-styles-COxCYFZx.js";
4
4
  import { r as s, t as c } from "./src-d7EAi61b.js";
5
- import { d as l } from "./src-BHllGfI8.js";
5
+ import { f as l } from "./src-DXdsMc_Z.js";
6
6
  import { t as u } from "./accessibility-C-aIZ1Yx.js";
7
7
  import { p as d, x as ee } from "./tokens.stylex-CJbIDPB9.js";
8
8
  import { t as te } from "./use-scroll-tab-index-Dxpdh4W7.js";
9
9
  import { mergeProps as f } from "@base-ui/react/merge-props";
10
10
  import * as p from "@stylexjs/stylex";
11
- import { Children as m, Fragment as ne, useEffect as h, useLayoutEffect as g, useMemo as re, useRef as _, useState as v, useSyncExternalStore as ie } from "react";
12
- import { Fragment as y, jsx as b, jsxs as x } from "react/jsx-runtime";
13
- import { ArrowDown as ae, ArrowUp as oe, ArrowUpDown as se, ChevronLeft as S, ChevronRight as C, Settings2 as w, X as T } from "lucide-react";
14
- import { createColumnHelper as ce, tableFeatures as E, useTable as le } from "@tanstack/react-table";
15
- import { defaultRangeExtractor as ue, useVirtualizer as de } from "@tanstack/react-virtual";
11
+ import { Children as m, Fragment as ne, useEffect as h, useLayoutEffect as re, useMemo as ie, useRef as g, useState as _, useSyncExternalStore as ae } from "react";
12
+ import { Fragment as v, jsx as y, jsxs as b } from "react/jsx-runtime";
13
+ import { ArrowDown as oe, ArrowUp as se, ArrowUpDown as ce, ChevronLeft as x, ChevronRight as S, Settings2 as C, X as w } from "lucide-react";
14
+ import { createColumnHelper as le, tableFeatures as T, useTable as ue } from "@tanstack/react-table";
15
+ import { defaultRangeExtractor as de, useVirtualizer as fe } from "@tanstack/react-virtual";
16
16
  // packages/collections/src/collection-controls.tsx
17
- var D = {
17
+ var E = {
18
18
  toolbar: {
19
19
  kOIVth: "x1hnptsi",
20
20
  kMwMTN: "xbixft",
@@ -29,35 +29,35 @@ var D = {
29
29
  $$css: !0
30
30
  }
31
31
  };
32
- function O({ label: e, children: t, actions: n }) {
32
+ function D({ label: e, children: t, actions: n }) {
33
33
  let r = m.toArray(t).length > 0, i = m.toArray(n).length > 0;
34
- return !r && !i ? null : /* @__PURE__ */ x("div", {
34
+ return !r && !i ? null : /* @__PURE__ */ b("div", {
35
35
  role: "group",
36
36
  "aria-label": e,
37
- ...p.props(o.row, o.blockEnd, D.toolbar),
38
- children: [t, i && /* @__PURE__ */ b("div", {
37
+ ...p.props(o.row, o.blockEnd, E.toolbar),
38
+ children: [t, i && /* @__PURE__ */ y("div", {
39
39
  className: "x78zum5 x6s0dn4 x1a02dak x1hnptsi xeuugli xvc5jky",
40
40
  children: n
41
41
  })]
42
42
  });
43
43
  }
44
- function k({ filters: t, onRemove: n, label: r = "Applied filters" }) {
45
- return t.length === 0 ? null : /* @__PURE__ */ b("div", {
44
+ function O({ filters: t, onRemove: n, label: r = "Applied filters" }) {
45
+ return t.length === 0 ? null : /* @__PURE__ */ y("div", {
46
46
  role: "group",
47
47
  "aria-label": r,
48
48
  className: "x78zum5 x6s0dn4 x1a02dak x1hnptsi xeuugli",
49
- children: t.map((t) => /* @__PURE__ */ x("span", {
49
+ children: t.map((t) => /* @__PURE__ */ b("span", {
50
50
  className: "x1n2onr6 x9f619 x3nfvp2 x6s0dn4 xunmzkg x1f9pz31 x992rv9 xyibt8p x1ok0vyi xeuugli x193iq5w xpvm0e4 xbixft x1hz01jw xtqrqnz x1778rvt x1s928wv x1j6awrg xarstr8 x5hscyn x86avzo x10z0kkz x1k48kgn x2q1x1w",
51
- children: [/* @__PURE__ */ b("span", {
51
+ children: [/* @__PURE__ */ y("span", {
52
52
  title: t.label,
53
53
  className: "xeuugli xb3r6kr xlyipyv xuxw1ft",
54
54
  children: t.label
55
- }), /* @__PURE__ */ b(e, {
55
+ }), /* @__PURE__ */ y(e, {
56
56
  "aria-label": `Remove ${t.label}`,
57
57
  variant: "ghost",
58
58
  onClick: () => n(t.id),
59
- xstyle: D.remove,
60
- children: /* @__PURE__ */ b(T, {
59
+ xstyle: E.remove,
60
+ children: /* @__PURE__ */ y(w, {
61
61
  size: 14,
62
62
  "aria-hidden": "true"
63
63
  })
@@ -65,29 +65,29 @@ function k({ filters: t, onRemove: n, label: r = "Applied filters" }) {
65
65
  }, t.id))
66
66
  });
67
67
  }
68
- function fe({ options: t, onChange: n, onReset: r, label: o = "Display options" }) {
69
- return /* @__PURE__ */ x(s.Root, { children: [/* @__PURE__ */ b(s.Trigger, {
70
- render: /* @__PURE__ */ b(e, {
68
+ function k({ options: t, onChange: n, onReset: r, label: o = "Display options" }) {
69
+ return /* @__PURE__ */ b(s.Root, { children: [/* @__PURE__ */ y(s.Trigger, {
70
+ render: /* @__PURE__ */ y(e, {
71
71
  "aria-label": o,
72
72
  title: o
73
73
  }),
74
- children: /* @__PURE__ */ b(w, {
74
+ children: /* @__PURE__ */ y(C, {
75
75
  size: 14,
76
76
  "aria-hidden": "true"
77
77
  })
78
- }), /* @__PURE__ */ b(s.Portal, { children: /* @__PURE__ */ b(s.Positioner, {
78
+ }), /* @__PURE__ */ y(s.Portal, { children: /* @__PURE__ */ y(s.Positioner, {
79
79
  align: "end",
80
- children: /* @__PURE__ */ x(s.Popup, { children: [/* @__PURE__ */ b(s.Title, { children: "Display" }), /* @__PURE__ */ x("div", {
80
+ children: /* @__PURE__ */ b(s.Popup, { children: [/* @__PURE__ */ y(s.Title, { children: "Display" }), /* @__PURE__ */ b("div", {
81
81
  className: "xrvj5dj x1n8ia3y xfb3i0g",
82
- children: [t.map((e) => /* @__PURE__ */ x("label", {
82
+ children: [t.map((e) => /* @__PURE__ */ b("label", {
83
83
  className: "x78zum5 x6s0dn4 x1hnptsi xbixft xtqrqnz x1hz01jw x1778rvt xeuugli xj0a0fe",
84
- children: [/* @__PURE__ */ b(a.Root, {
84
+ children: [/* @__PURE__ */ y(a.Root, {
85
85
  checked: e.isChecked,
86
86
  onCheckedChange: (t) => n(e.id, t),
87
87
  disabled: e.isRequired,
88
- children: /* @__PURE__ */ b(a.Indicator, {})
88
+ children: /* @__PURE__ */ y(a.Indicator, {})
89
89
  }), e.label]
90
- }, e.id)), r !== void 0 && /* @__PURE__ */ b(i, {
90
+ }, e.id)), r !== void 0 && /* @__PURE__ */ y(i, {
91
91
  type: "button",
92
92
  variant: "ghost",
93
93
  onClick: r,
@@ -97,24 +97,24 @@ function fe({ options: t, onChange: n, onReset: r, label: o = "Display options"
97
97
  }) })] });
98
98
  }
99
99
  function pe({ description: e, previous: t, next: r }) {
100
- return /* @__PURE__ */ x("nav", {
100
+ return /* @__PURE__ */ b("nav", {
101
101
  "aria-label": "Pagination",
102
102
  className: "x78zum5 x6s0dn4 x1qughib x1a02dak xaml1ju xeuugli",
103
- children: [/* @__PURE__ */ b(n, { children: e }), /* @__PURE__ */ x("div", {
103
+ children: [/* @__PURE__ */ y(n, { children: e }), /* @__PURE__ */ b("div", {
104
104
  className: "x78zum5 x6s0dn4 x1a02dak x1hnptsi xeuugli xvc5jky",
105
- children: [/* @__PURE__ */ x(i, {
105
+ children: [/* @__PURE__ */ b(i, {
106
106
  variant: "outline",
107
107
  disabled: t.disabled,
108
108
  onClick: t.onClick,
109
- children: [/* @__PURE__ */ b(S, {
109
+ children: [/* @__PURE__ */ y(x, {
110
110
  size: 16,
111
111
  "aria-hidden": "true"
112
112
  }), "Previous"]
113
- }), /* @__PURE__ */ x(i, {
113
+ }), /* @__PURE__ */ b(i, {
114
114
  variant: "outline",
115
115
  disabled: r.disabled,
116
116
  onClick: r.onClick,
117
- children: ["Next", /* @__PURE__ */ b(C, {
117
+ children: ["Next", /* @__PURE__ */ y(S, {
118
118
  size: 16,
119
119
  "aria-hidden": "true"
120
120
  })]
@@ -138,7 +138,7 @@ function me({ end: e, viewport: t, onEndReached: n, content: r }) {
138
138
  ]);
139
139
  }
140
140
  // packages/collections/src/data-table.tsx
141
- var he = E({}), ge = 76, A = d.compactTable.slice(7), _e = /* @__PURE__ */ new Map([["ArrowUp", -1], ["ArrowDown", 1]]), j = {
141
+ var he = T({}), ge = 76, A = d.compactTable.slice(7), _e = /* @__PURE__ */ new Map([["ArrowUp", -1], ["ArrowDown", 1]]), j = {
142
142
  kmVPX3: "x1717udv",
143
143
  kMzoRj: "xc342km",
144
144
  $$css: !0
@@ -304,24 +304,24 @@ var he = E({}), ge = 76, A = d.compactTable.slice(7), _e = /* @__PURE__ */ new M
304
304
  isFlexible: !1,
305
305
  shouldTruncate: !1
306
306
  }
307
- }, P = {
307
+ }, ve = {
308
308
  fixed: M.content,
309
309
  content: M.contentCell
310
- }, F = {
310
+ }, P = {
311
311
  primary: M.start,
312
312
  text: M.start,
313
313
  status: M.start,
314
314
  number: M.end,
315
315
  timestamp: M.end,
316
316
  actions: M.end
317
- }, I = {
317
+ }, ye = {
318
318
  content: M.content,
319
319
  fill: M.fillFrame
320
- }, L = {
320
+ }, be = {
321
321
  content: M.content,
322
322
  fill: M.fillViewport
323
323
  };
324
- function ve(e) {
324
+ function xe(e) {
325
325
  return e.map((e) => {
326
326
  let t = N[e.role], n = e.width ?? (t.isFlexible ? void 0 : t.minimumWidth);
327
327
  return {
@@ -330,57 +330,57 @@ function ve(e) {
330
330
  };
331
331
  });
332
332
  }
333
- function ye(e, t = 0) {
333
+ function Se(e, t = 0) {
334
334
  return {
335
335
  minimumWidth: e.reduce((e, t) => e + (t.width ?? N[t.role].minimumWidth), t),
336
336
  compactWidth: e.filter((e) => e.isSecondary !== !0).reduce((e, t) => e + (t.width ?? N[t.role].minimumWidth), t)
337
337
  };
338
338
  }
339
- function be(e) {
339
+ function Ce(e) {
340
340
  let t = globalThis.matchMedia(A);
341
341
  return t.addEventListener("change", e), () => t.removeEventListener("change", e);
342
342
  }
343
- function xe() {
343
+ function we() {
344
344
  return globalThis.matchMedia(A).matches;
345
345
  }
346
- function Se({ columns: e, canSelect: t = !1 }) {
347
- return /* @__PURE__ */ x("colgroup", { children: [t && /* @__PURE__ */ b("col", { className: "x1d7z9mz xeuugli x1dc62k6" }), e.map((e) => /* @__PURE__ */ b("col", { ...p.props(e.width !== void 0 && M.width(e.width), e.isSecondary === !0 && M.secondary) }, e.id))] });
346
+ function Te({ columns: e, canSelect: t = !1 }) {
347
+ return /* @__PURE__ */ b("colgroup", { children: [t && /* @__PURE__ */ y("col", { className: "x1d7z9mz xeuugli x1dc62k6" }), e.map((e) => /* @__PURE__ */ y("col", { ...p.props(e.width !== void 0 && M.width(e.width), e.isSecondary === !0 && M.secondary) }, e.id))] });
348
348
  }
349
- function R({ columns: e, sizing: t = "content", rowSizing: n = "fixed", hideHeaders: r = !1 }) {
350
- let i = ve(e), { minimumWidth: a, compactWidth: o } = ye(i);
351
- return /* @__PURE__ */ b("div", {
349
+ function F({ columns: e, sizing: t = "content", rowSizing: n = "fixed", hideHeaders: r = !1 }) {
350
+ let i = xe(e), { minimumWidth: a, compactWidth: o } = Se(i);
351
+ return /* @__PURE__ */ y("div", {
352
352
  "aria-hidden": !0,
353
353
  inert: !0,
354
- ...p.props(M.frame, I[t], M.placeholder),
355
- children: /* @__PURE__ */ b("div", {
356
- ...p.props(M.viewport, L[t]),
357
- children: /* @__PURE__ */ x("table", {
354
+ ...p.props(M.frame, ye[t], M.placeholder),
355
+ children: /* @__PURE__ */ y("div", {
356
+ ...p.props(M.viewport, be[t]),
357
+ children: /* @__PURE__ */ b("table", {
358
358
  ...p.props(M.table, M.fixed, M.minimumWidth(a, o)),
359
359
  children: [
360
- /* @__PURE__ */ b(Se, { columns: i }),
361
- /* @__PURE__ */ b("thead", {
360
+ /* @__PURE__ */ y(Te, { columns: i }),
361
+ /* @__PURE__ */ y("thead", {
362
362
  ...p.props(r && u.hidden),
363
- children: /* @__PURE__ */ b("tr", { children: i.map((e) => /* @__PURE__ */ b("th", {
364
- ...p.props(M.header, F[e.role], e.width !== void 0 && M.width(e.width), e.isSecondary === !0 && M.secondary),
365
- children: /* @__PURE__ */ b("span", {
363
+ children: /* @__PURE__ */ y("tr", { children: i.map((e) => /* @__PURE__ */ y("th", {
364
+ ...p.props(M.header, P[e.role], e.width !== void 0 && M.width(e.width), e.isSecondary === !0 && M.secondary),
365
+ children: /* @__PURE__ */ y("span", {
366
366
  className: "x1lliihq xeuugli xb3r6kr xlyipyv xuxw1ft",
367
367
  children: e.label
368
368
  })
369
369
  }, e.id)) })
370
370
  }),
371
- /* @__PURE__ */ b("tbody", { children: [
371
+ /* @__PURE__ */ y("tbody", { children: [
372
372
  "first",
373
373
  "second",
374
374
  "third"
375
- ].map((e) => /* @__PURE__ */ b("tr", {
375
+ ].map((e) => /* @__PURE__ */ y("tr", {
376
376
  className: "x1n2onr6 xc8icb0 x1wtzb06 xso031l x1q0q8m5 x1qndepd x19k386i x1t1lzn6",
377
- children: i.map((e) => /* @__PURE__ */ b("td", {
378
- ...p.props(M.cell, P[n], F[e.role], e.width !== void 0 && M.width(e.width), e.isSecondary === !0 && M.secondary),
379
- children: /* @__PURE__ */ b(H, {
377
+ children: i.map((e) => /* @__PURE__ */ y("td", {
378
+ ...p.props(M.cell, ve[n], P[e.role], e.width !== void 0 && M.width(e.width), e.isSecondary === !0 && M.secondary),
379
+ children: /* @__PURE__ */ y(B, {
380
380
  role: e.role,
381
381
  isFixed: n === "fixed",
382
382
  shouldTruncate: void 0,
383
- children: e.placeholder ?? /* @__PURE__ */ b(l, { width: "60%" })
383
+ children: e.placeholder ?? /* @__PURE__ */ y(l, { width: "60%" })
384
384
  })
385
385
  }, e.id))
386
386
  }, e)) })
@@ -389,190 +389,220 @@ function R({ columns: e, sizing: t = "content", rowSizing: n = "fixed", hideHead
389
389
  })
390
390
  });
391
391
  }
392
- function z({ children: e, leading: t, isDecorative: n = !1 }) {
392
+ function I({ children: e, leading: t, isDecorative: n = !1 }) {
393
393
  let r = m.toArray(t).length > 0;
394
- return /* @__PURE__ */ x("span", {
394
+ return /* @__PURE__ */ b("span", {
395
395
  "aria-hidden": n || void 0,
396
396
  inert: n || void 0,
397
397
  className: "x78zum5 x6s0dn4 x1n8ia3y xeuugli xh8yej3 x1hz01jw xtqrqnz x1778rvt xj57cvi",
398
- children: [r && /* @__PURE__ */ b("span", {
398
+ children: [r && /* @__PURE__ */ y("span", {
399
399
  "aria-hidden": !0,
400
400
  className: "x3nfvp2 x6s0dn4 x2lah0s",
401
401
  children: t
402
- }), /* @__PURE__ */ b("span", {
402
+ }), /* @__PURE__ */ y("span", {
403
403
  className: "x98rzlu xeuugli",
404
404
  children: e
405
405
  })]
406
406
  });
407
407
  }
408
- function B({ children: e, secondary: t, leading: n, trailing: r }) {
408
+ function L({ children: e, secondary: t, leading: n, trailing: r }) {
409
409
  let i = m.toArray(r).length > 0;
410
- return /* @__PURE__ */ x(z, {
410
+ return /* @__PURE__ */ b(I, {
411
411
  leading: n,
412
- children: [/* @__PURE__ */ x("span", {
412
+ children: [/* @__PURE__ */ b("span", {
413
413
  className: "x78zum5 x6s0dn4 x1hnptsi xeuugli",
414
- children: [/* @__PURE__ */ b("span", {
414
+ children: [/* @__PURE__ */ y("span", {
415
415
  title: e,
416
416
  className: "x1lliihq xeuugli x14atkfc xs83m0k xb3r6kr xuxw1ft xlyipyv",
417
417
  children: e
418
- }), i && /* @__PURE__ */ b("span", {
418
+ }), i && /* @__PURE__ */ y("span", {
419
419
  className: "x3nfvp2 x6s0dn4 x2lah0s",
420
420
  children: r
421
421
  })]
422
- }), t !== void 0 && /* @__PURE__ */ b("span", {
422
+ }), t !== void 0 && /* @__PURE__ */ y("span", {
423
423
  title: t,
424
424
  className: "x1lliihq xeuugli xh8yej3 xb3r6kr xuxw1ft xlyipyv x153jb6y xy8obcc xas2l8k",
425
425
  children: t
426
426
  })]
427
427
  });
428
428
  }
429
- function V({ leading: e, isSecondary: t = !1 }) {
430
- return /* @__PURE__ */ x(z, {
429
+ function R({ leading: e, isSecondary: t = !1 }) {
430
+ return /* @__PURE__ */ b(I, {
431
431
  leading: e,
432
432
  isDecorative: !0,
433
- children: [/* @__PURE__ */ b("span", {
433
+ children: [/* @__PURE__ */ y("span", {
434
434
  className: "x1lliihq xeuugli xh8yej3",
435
- children: /* @__PURE__ */ b(l, { width: "70%" })
436
- }), t && /* @__PURE__ */ b("span", {
435
+ children: /* @__PURE__ */ y(l, { width: "70%" })
436
+ }), t && /* @__PURE__ */ y("span", {
437
437
  className: "x1lliihq xeuugli xh8yej3 x153jb6y xy8obcc xas2l8k",
438
- children: /* @__PURE__ */ b(l, { width: "45%" })
438
+ children: /* @__PURE__ */ y(l, { width: "45%" })
439
439
  })]
440
440
  });
441
441
  }
442
- function Ce({ rows: e, columns: t, getRowId: n, caption: r, empty: i, sort: o, onSortChange: s, selectedIds: c, onSelectionChange: l, selectionLabel: d, rowAction: f, activeRowId: m, focusRowId: y, hideCaption: S = !1, hideHeaders: C = !1, rowSizing: w = "fixed", window: T, endContent: E, onEndReached: D, footer: O }) {
443
- let k = re(() => ve(t), [t]), fe = ie(be, xe, () => !1), pe = re(() => {
444
- let e = ce();
442
+ function z({ rows: e, columns: t, getRowId: n, caption: r, empty: i, sort: o, onSortChange: s, selectedIds: c, onSelectionChange: l, selectionLabel: d, rowAction: f, activeRowId: m, focusRowId: v, onRowHighlightChange: x, hideCaption: S = !1, hideHeaders: C = !1, rowSizing: w = "fixed", window: T, endContent: E, onEndReached: D, footer: O }) {
443
+ let k = ie(() => xe(t), [t]), pe = ae(Ce, we, () => !1), A = ie(() => {
444
+ let e = le();
445
445
  return e.columns(k.map((t) => e.display({
446
446
  id: t.id,
447
447
  header: t.label
448
448
  })));
449
- }, [k]), A = le({
449
+ }, [k]), j = ue({
450
450
  features: he,
451
- columns: pe,
451
+ columns: A,
452
452
  data: e,
453
453
  getRowId: n
454
- }), j = te(), N = j.viewport, R = _(null), z = _(null), B = _(null), [V, Ce] = v(0), [U, W] = v(), G = _(void 0), K = _(void 0), q = e.findIndex((e) => n(e) === U), J = k.findIndex((e) => e.role === "primary" && e.isSecondary !== !0), Y = J === -1 ? k.findIndex((e) => e.isSecondary !== !0) : J, X = typeof T?.height == "string" ? T.height : "content";
455
- g(() => {
456
- if (y === void 0) {
457
- K.current = void 0;
458
- return;
459
- }
460
- if (K.current === y) return;
461
- let e = N.current?.querySelector(`[data-row-id="${CSS.escape(y)}"] [data-row-action]`);
462
- if (e == null) return;
463
- let t = requestAnimationFrame(() => {
464
- e.focus({ preventScroll: !0 }), K.current = y;
465
- });
466
- return () => cancelAnimationFrame(t);
467
- }, [e, y]), me({
468
- end: R,
454
+ }), N = te(), F = N.viewport, I = g(null), L = g(null), R = g(null), [z, V] = _(0), [H, U] = _(), [W, G] = _(), K = g(void 0), q = g(void 0), J = g(void 0), Y = e.findIndex((e) => n(e) === H), X = k.findIndex((e) => e.role === "primary" && e.isSecondary !== !0), De = X === -1 ? k.findIndex((e) => e.isSecondary !== !0) : X, Oe = typeof T?.height == "string" ? T.height : "content", ke = new Set(e.map(n)), Ae = H !== void 0 && ke.has(H) ? H : void 0;
455
+ H !== void 0 && Ae === void 0 && U(void 0), me({
456
+ end: I,
469
457
  onEndReached: T === void 0 ? D : void 0,
470
458
  content: e.length
471
459
  }), h(() => {
472
- let e = z.current, t = B.current;
460
+ let e = L.current, t = R.current;
473
461
  if (T === void 0 || e === null || t === null) return;
474
- let n = new ResizeObserver(() => Ce(e.offsetHeight + t.offsetHeight));
462
+ let n = new ResizeObserver(() => V(e.offsetHeight + t.offsetHeight));
475
463
  return n.observe(e), n.observe(t), () => n.disconnect();
476
464
  }, [
477
465
  T,
478
466
  S,
479
467
  C
480
468
  ]);
481
- let Z = de({
469
+ let Z = fe({
482
470
  count: e.length,
483
471
  enabled: T !== void 0,
484
- getScrollElement: () => N.current,
472
+ getScrollElement: () => F.current,
485
473
  getItemKey: (t) => {
486
474
  let r = e[t];
487
475
  if (r === void 0) throw RangeError("The virtual row is outside the supplied table page.");
488
476
  return n(r);
489
477
  },
490
478
  estimateSize: () => w === "fixed" ? ee.rowHeight : T?.estimatedRowHeight ?? ee.rowHeight,
491
- scrollMargin: V,
492
- scrollPaddingStart: V,
479
+ scrollMargin: z,
480
+ scrollPaddingStart: z,
493
481
  overscan: 6,
494
482
  rangeExtractor: (t) => {
495
- let n = ue(t);
496
- return q === -1 ? n : [.../* @__PURE__ */ new Set([
483
+ let n = de(t);
484
+ return Y === -1 ? n : [.../* @__PURE__ */ new Set([
497
485
  ...n,
498
- q - 1,
499
- q,
500
- q + 1
486
+ Y - 1,
487
+ Y,
488
+ Y + 1
501
489
  ])].filter((t) => t >= 0 && t < e.length).toSorted((e, t) => e - t);
502
490
  }
503
- }), Te = T === void 0 ? A.getRowModel().rows.map((e, t) => ({
491
+ }), Q = T === void 0 ? j.getRowModel().rows.map((e, t) => ({
504
492
  row: e,
505
493
  index: t,
506
494
  spacerHeight: 0
507
495
  })) : Z.getVirtualItems().flatMap((e, t, n) => {
508
- let r = A.getRowModel().rows[e.index];
496
+ let r = j.getRowModel().rows[e.index];
509
497
  return r === void 0 ? [] : [{
510
498
  row: r,
511
499
  index: e.index,
512
- spacerHeight: e.start - (n[t - 1]?.end ?? V)
500
+ spacerHeight: e.start - (n[t - 1]?.end ?? z)
513
501
  }];
514
- }), Q = T !== void 0 && (e.length === 0 || Z.range?.endIndex === e.length - 1);
502
+ }), je = Q.some(({ row: e }) => e.id === W) ? W : void 0, $ = je ?? Ae;
503
+ W !== void 0 && je === void 0 && G(void 0), h(() => {
504
+ if (x === void 0) {
505
+ K.current = void 0;
506
+ return;
507
+ }
508
+ if (K.current !== void 0 && K.current.id === $) return;
509
+ let e = { isCurrent: !0 };
510
+ return queueMicrotask(() => {
511
+ e.isCurrent && (K.current = { id: $ }, x($));
512
+ }), () => {
513
+ e.isCurrent = !1;
514
+ };
515
+ }, [$, x]);
516
+ let Me = Q.some(({ row: e }) => e.id === v);
517
+ re(() => {
518
+ if (v === void 0) {
519
+ J.current = void 0;
520
+ return;
521
+ }
522
+ if (J.current === v) return;
523
+ if (!Me && T !== void 0) {
524
+ let t = e.findIndex((e) => n(e) === v);
525
+ t !== -1 && Z.scrollToIndex(t, { align: "auto" });
526
+ return;
527
+ }
528
+ let t = F.current?.querySelector(`[data-row-id="${CSS.escape(v)}"] [data-row-action]`);
529
+ if (t == null || t.matches(":disabled")) return;
530
+ let r = requestAnimationFrame(() => {
531
+ t.focus({ preventScroll: !0 }), document.activeElement === t && (J.current = v);
532
+ });
533
+ return () => cancelAnimationFrame(r);
534
+ }, [
535
+ e,
536
+ v,
537
+ f?.disabled,
538
+ Me,
539
+ T,
540
+ n,
541
+ F,
542
+ Z
543
+ ]);
544
+ let Ne = T !== void 0 && (e.length === 0 || Z.range?.endIndex === e.length - 1);
515
545
  h(() => {
516
- Q && D?.();
546
+ Ne && D?.();
517
547
  }, [
518
- Q,
548
+ Ne,
519
549
  D,
520
550
  e.length
521
- ]), g(() => {
522
- if (G.current === void 0) return;
523
- let e = Array.from(N.current?.querySelectorAll("[data-row-id]") ?? []).find((e) => e.dataset.rowId === G.current)?.querySelector("[data-row-action]");
524
- e != null && (e.focus({ preventScroll: T !== void 0 }), G.current = void 0);
551
+ ]), re(() => {
552
+ if (q.current === void 0) return;
553
+ let e = Array.from(F.current?.querySelectorAll("[data-row-id]") ?? []).find((e) => e.dataset.rowId === q.current)?.querySelector("[data-row-action]");
554
+ e != null && (e.focus({ preventScroll: T !== void 0 }), q.current = void 0);
525
555
  });
526
- function Ee(t, r) {
556
+ function Pe(t, r) {
527
557
  let i = t.metaKey || t.ctrlKey, a = t.altKey || t.shiftKey;
528
558
  if (i || a) return;
529
559
  let o = _e.get(t.key);
530
560
  if (o === void 0) return;
531
561
  t.preventDefault();
532
562
  let s = r + o, c = e[s];
533
- c !== void 0 && (G.current = n(c), W(G.current), T !== void 0 && Z.scrollToIndex(s, { align: "auto" }));
563
+ c !== void 0 && (q.current = n(c), U(q.current), T !== void 0 && Z.scrollToIndex(s, { align: "auto" }));
534
564
  }
535
- let $ = k.filter((e) => !fe || e.isSecondary !== !0).length + (c === void 0 ? 0 : 1), De = c === void 0 ? 0 : ge, Oe = O != null && typeof O != "boolean", { minimumWidth: ke, compactWidth: Ae } = ye(k, De), je = Z.getTotalSize() - (Z.getVirtualItems().at(-1)?.end ?? V) + V;
536
- return /* @__PURE__ */ x("div", {
537
- ...p.props(M.frame, I[X]),
538
- children: [/* @__PURE__ */ x("div", {
539
- ref: j.ref,
565
+ let Fe = k.filter((e) => !pe || e.isSecondary !== !0).length + (c === void 0 ? 0 : 1), Ie = c === void 0 ? 0 : ge, Le = O != null && typeof O != "boolean", { minimumWidth: Re, compactWidth: ze } = Se(k, Ie), Be = Z.getTotalSize() - (Z.getVirtualItems().at(-1)?.end ?? z) + z;
566
+ return /* @__PURE__ */ b("div", {
567
+ ...p.props(M.frame, ye[Oe]),
568
+ children: [/* @__PURE__ */ b("div", {
569
+ ref: N.ref,
540
570
  "data-table-viewport": !0,
541
571
  role: "region",
542
572
  "aria-label": r,
543
- tabIndex: j.tabIndex,
544
- ...p.props(M.viewport, L[X], typeof T?.height == "number" && M.virtual(T.height)),
545
- children: [/* @__PURE__ */ x("table", {
573
+ tabIndex: N.tabIndex,
574
+ ...p.props(M.viewport, be[Oe], typeof T?.height == "number" && M.virtual(T.height)),
575
+ children: [/* @__PURE__ */ b("table", {
546
576
  "aria-rowcount": T === void 0 ? void 0 : Math.max(1, e.length) + 1,
547
- ...p.props(M.table, M.fixed, M.minimumWidth(ke, Ae)),
577
+ ...p.props(M.table, M.fixed, M.minimumWidth(Re, ze)),
548
578
  children: [
549
- /* @__PURE__ */ b("caption", {
550
- ref: z,
579
+ /* @__PURE__ */ y("caption", {
580
+ ref: L,
551
581
  ...p.props(M.caption, S && u.hidden),
552
582
  children: r
553
583
  }),
554
- /* @__PURE__ */ b(Se, {
584
+ /* @__PURE__ */ y(Te, {
555
585
  columns: k,
556
586
  canSelect: c !== void 0
557
587
  }),
558
- /* @__PURE__ */ b("thead", {
559
- ref: B,
588
+ /* @__PURE__ */ y("thead", {
589
+ ref: R,
560
590
  ...p.props(C && u.hidden),
561
- children: /* @__PURE__ */ x("tr", { children: [c !== void 0 && /* @__PURE__ */ b("th", {
591
+ children: /* @__PURE__ */ b("tr", { children: [c !== void 0 && /* @__PURE__ */ y("th", {
562
592
  scope: "col",
563
593
  className: "x9f619 x7wzq59 x13vifvy x11ru5tl x1krvmzm xt970qd xso031l x1q0q8m5 x1qndepd x153jb6y xpvm0e4 xj57cvi xy8obcc xas2l8k xuxw1ft x1d7z9mz xeuugli x1dc62k6",
564
- children: /* @__PURE__ */ b("span", {
594
+ children: /* @__PURE__ */ y("span", {
565
595
  ...p.props(u.hidden),
566
596
  children: "Select"
567
597
  })
568
598
  }), k.map((e) => {
569
599
  let t = o?.columnId === e.id ? o.direction : void 0;
570
- return /* @__PURE__ */ b("th", {
600
+ return /* @__PURE__ */ y("th", {
571
601
  scope: "col",
572
602
  title: e.label,
573
603
  "aria-sort": t,
574
- ...p.props(M.header, F[e.role], e.width !== void 0 && M.width(e.width), e.isSecondary === !0 && M.secondary),
575
- children: e.canSort === !0 && s !== void 0 ? /* @__PURE__ */ x("button", {
604
+ ...p.props(M.header, P[e.role], e.width !== void 0 && M.width(e.width), e.isSecondary === !0 && M.secondary),
605
+ children: e.canSort === !0 && s !== void 0 ? /* @__PURE__ */ b("button", {
576
606
  type: "button",
577
607
  className: "x3nfvp2 x6s0dn4 x1hnptsi x193iq5w xeuugli x2zujid x17oiadl x1717udv xc342km x1heor9g xjbqb8w xjb2p0i x1qlqyl8 x1pd3egz x15bjb6t x1ypdohk xp9636p x1s9zmfe x13qnu6 x9v5kkp x19rmrnh x7s97pk",
578
608
  onClick: () => {
@@ -584,69 +614,85 @@ function Ce({ rows: e, columns: t, getRowId: n, caption: r, empty: i, sort: o, o
584
614
  direction: "ascending"
585
615
  });
586
616
  },
587
- children: [/* @__PURE__ */ b("span", {
617
+ children: [/* @__PURE__ */ y("span", {
588
618
  className: "x1lliihq xeuugli xb3r6kr xlyipyv xuxw1ft",
589
619
  children: e.label
590
- }), b(t === "ascending" ? oe : t === "descending" ? ae : se, {
620
+ }), y(t === "ascending" ? se : t === "descending" ? oe : ce, {
591
621
  size: 14,
592
622
  "aria-hidden": "true",
593
623
  className: "x2lah0s"
594
624
  })]
595
- }) : /* @__PURE__ */ b("span", {
625
+ }) : /* @__PURE__ */ y("span", {
596
626
  className: "x1lliihq xeuugli xb3r6kr xlyipyv xuxw1ft",
597
627
  children: e.label
598
628
  })
599
629
  }, e.id);
600
630
  })] })
601
631
  }),
602
- /* @__PURE__ */ x("tbody", {
632
+ /* @__PURE__ */ b("tbody", {
633
+ onPointerLeave: () => G(void 0),
634
+ onKeyDownCapture: () => G(void 0),
603
635
  onBlur: (e) => {
604
- e.currentTarget.contains(e.relatedTarget) || W(void 0);
636
+ e.currentTarget.contains(e.relatedTarget) || U(void 0);
605
637
  },
606
638
  children: [
607
- Te.map(({ row: e, index: t, spacerHeight: n }) => /* @__PURE__ */ x(ne, { children: [n > 0 && /* @__PURE__ */ b("tr", {
639
+ Q.map(({ row: e, index: t, spacerHeight: n }) => /* @__PURE__ */ b(ne, { children: [n > 0 && /* @__PURE__ */ y("tr", {
608
640
  "aria-hidden": "true",
609
- children: /* @__PURE__ */ b("td", {
610
- colSpan: $,
641
+ children: /* @__PURE__ */ y("td", {
642
+ colSpan: Fe,
611
643
  ...p.props(M.spacer(n))
612
644
  })
613
- }), /* @__PURE__ */ x("tr", {
645
+ }), /* @__PURE__ */ b("tr", {
614
646
  "data-index": t,
615
647
  "data-row-id": e.id,
616
648
  "aria-rowindex": T === void 0 ? void 0 : t + 2,
617
649
  ref: T === void 0 || w === "fixed" ? void 0 : Z.measureElement,
618
- onFocus: () => W(e.id),
650
+ onPointerMove: (t) => {
651
+ t.pointerType === "mouse" && G(e.id);
652
+ },
653
+ onPointerEnter: (t) => {
654
+ t.pointerType === "mouse" && G(e.id);
655
+ },
656
+ onPointerLeave: () => {
657
+ G((t) => t === e.id ? void 0 : t);
658
+ },
659
+ onPointerDown: (e) => {
660
+ e.pointerType !== "mouse" && G(void 0);
661
+ },
662
+ onFocus: () => {
663
+ G(void 0), U(e.id);
664
+ },
619
665
  ...{
620
666
  0: { className: "x1n2onr6 xc8icb0 x1wtzb06 xso031l x1q0q8m5 x1qndepd x19k386i x1t1lzn6" },
621
667
  2: { className: "x1n2onr6 xc8icb0 x1wtzb06 xso031l x1q0q8m5 x1qndepd x19k386i x1t1lzn6 x1ypdohk x1ecmtor" },
622
668
  1: { className: "x1n2onr6 xc8icb0 x1wtzb06 xso031l x1q0q8m5 x1qndepd x19k386i x1t1lzn6 x1r8u7ye" },
623
669
  3: { className: "x1n2onr6 xc8icb0 x1wtzb06 xso031l x1q0q8m5 x1qndepd x19k386i x1t1lzn6 x1ypdohk x1ecmtor x1r8u7ye" }
624
- }[(f !== void 0) << 1 | (c?.has(e.id) === !0 || m === e.id)],
625
- children: [c !== void 0 && /* @__PURE__ */ b("td", {
670
+ }[(f !== void 0 && f.disabled !== !0) << 1 | (c?.has(e.id) === !0 || m === e.id)],
671
+ children: [c !== void 0 && /* @__PURE__ */ y("td", {
626
672
  className: "x9f619 xt970qd xxymvpz xj0a0fe x1d7z9mz xeuugli x1dc62k6 x1n2onr6 x1vjfegm",
627
- children: /* @__PURE__ */ b(a.Root, {
673
+ children: /* @__PURE__ */ y(a.Root, {
628
674
  "aria-label": d(e.original),
629
675
  checked: c.has(e.id),
630
676
  onCheckedChange: (t) => {
631
677
  let n = new Set(c);
632
678
  t ? n.add(e.id) : n.delete(e.id), l(n);
633
679
  },
634
- children: /* @__PURE__ */ b(a.Indicator, {})
680
+ children: /* @__PURE__ */ y(a.Indicator, {})
635
681
  })
636
- }), k.map((n, r) => /* @__PURE__ */ b("td", {
637
- ...p.props(M.cell, P[w], F[n.role], n.width !== void 0 && M.width(n.width), n.isSecondary === !0 && M.secondary),
638
- children: f !== void 0 && r === Y ? /* @__PURE__ */ b(we, {
682
+ }), k.map((n, r) => /* @__PURE__ */ y("td", {
683
+ ...p.props(M.cell, ve[w], P[n.role], n.width !== void 0 && M.width(n.width), n.isSecondary === !0 && M.secondary),
684
+ children: f !== void 0 && r === De ? /* @__PURE__ */ y(Ee, {
639
685
  row: e.original,
640
686
  action: f,
641
687
  isActive: m === e.id,
642
- onKeyDown: (e) => Ee(e, t),
643
- children: /* @__PURE__ */ b(H, {
688
+ onKeyDown: (e) => Pe(e, t),
689
+ children: /* @__PURE__ */ y(B, {
644
690
  role: n.role,
645
691
  isFixed: w === "fixed",
646
692
  shouldTruncate: n.shouldTruncate,
647
693
  children: n.cell(e.original)
648
694
  })
649
- }) : /* @__PURE__ */ b(H, {
695
+ }) : /* @__PURE__ */ y(B, {
650
696
  role: n.role,
651
697
  isFixed: w === "fixed",
652
698
  shouldTruncate: n.shouldTruncate,
@@ -654,17 +700,17 @@ function Ce({ rows: e, columns: t, getRowId: n, caption: r, empty: i, sort: o, o
654
700
  })
655
701
  }, n.id))]
656
702
  })] }, e.id)),
657
- T !== void 0 && je > 0 && /* @__PURE__ */ b("tr", {
703
+ T !== void 0 && Be > 0 && /* @__PURE__ */ y("tr", {
658
704
  "aria-hidden": "true",
659
- children: /* @__PURE__ */ b("td", {
660
- colSpan: $,
661
- ...p.props(M.spacer(je))
705
+ children: /* @__PURE__ */ y("td", {
706
+ colSpan: Fe,
707
+ ...p.props(M.spacer(Be))
662
708
  })
663
709
  }),
664
- e.length === 0 && /* @__PURE__ */ b("tr", { children: /* @__PURE__ */ b("td", {
665
- colSpan: $,
710
+ e.length === 0 && /* @__PURE__ */ y("tr", { children: /* @__PURE__ */ y("td", {
711
+ colSpan: Fe,
666
712
  className: "x1717udv",
667
- children: /* @__PURE__ */ b("div", {
713
+ children: /* @__PURE__ */ y("div", {
668
714
  className: "x9f619 x7wzq59 x1o0tod xzfn7dr x193iq5w x1ttojsm x2b8uid xeaf4i8 xj0a0fe x153jb6y",
669
715
  children: i
670
716
  })
@@ -672,28 +718,28 @@ function Ce({ rows: e, columns: t, getRowId: n, caption: r, empty: i, sort: o, o
672
718
  ]
673
719
  })
674
720
  ]
675
- }), /* @__PURE__ */ b("div", {
676
- ref: R,
721
+ }), /* @__PURE__ */ y("div", {
722
+ ref: I,
677
723
  ...{
678
724
  0: {},
679
725
  1: { className: "xid9utz xg7ukam x153jb6y xy8obcc xas2l8k x15x95ik x1az1eml" }
680
726
  }[E !== void 0 | 0],
681
727
  children: E
682
728
  })]
683
- }), Oe && /* @__PURE__ */ b("div", {
729
+ }), Le && /* @__PURE__ */ y("div", {
684
730
  className: "xg7ukam x178xt8z x13fuv20 xhjagg4",
685
731
  children: O
686
732
  })]
687
733
  });
688
734
  }
689
- function H({ role: e, isFixed: t, shouldTruncate: n, children: r }) {
735
+ function B({ role: e, isFixed: t, shouldTruncate: n, children: r }) {
690
736
  let i = N[e], a = t && i.shouldTruncate, o = typeof r == "string" && (n ?? a);
691
- return /* @__PURE__ */ b("span", {
737
+ return /* @__PURE__ */ y("span", {
692
738
  ...{
693
739
  0: { className: "x78zum5 x6s0dn4 xeuugli xh8yej3 xw3im37" },
694
740
  1: { className: "x78zum5 x6s0dn4 xeuugli xh8yej3 xt7dq6l" }
695
741
  }[!t | 0],
696
- children: /* @__PURE__ */ b("span", {
742
+ children: /* @__PURE__ */ y("span", {
697
743
  title: typeof r == "string" ? r : void 0,
698
744
  ...{
699
745
  0: { className: "x1lliihq xeuugli xh8yej3 x193iq5w xkfz77 x1ljc890" },
@@ -709,80 +755,81 @@ function H({ role: e, isFixed: t, shouldTruncate: n, children: r }) {
709
755
  })
710
756
  });
711
757
  }
712
- function U(e) {
758
+ function V(e) {
713
759
  if (e.defaultPrevented || e.button !== 0) return !1;
714
760
  let t = e.metaKey || e.ctrlKey, n = e.altKey || e.shiftKey;
715
761
  return t || n ? !1 : e.detail === 0 || e.currentTarget.ownerDocument.getSelection()?.isCollapsed !== !1;
716
762
  }
717
- function we({ row: e, action: t, isActive: n, children: r, onKeyDown: i }) {
718
- let a = t.label?.(e), o = t.href === void 0 ? /* @__PURE__ */ b("button", {
763
+ function Ee({ row: e, action: t, isActive: n, children: r, onKeyDown: i }) {
764
+ let a = t.label?.(e), o = t.href === void 0 ? /* @__PURE__ */ y("button", {
719
765
  type: "button",
766
+ disabled: t.disabled,
720
767
  "aria-label": a,
721
768
  "aria-pressed": n,
722
769
  "data-row-action": !0,
723
770
  onKeyDown: i,
724
771
  onClick: (n) => {
725
- U(n) && t.onActivate(e);
772
+ V(n) && t.onActivate(e);
726
773
  },
727
- className: "x1rh3ycu x1hx0egp x78zum5 x6s0dn4 xh8yej3 xeuugli x17tes2r x17oiadl x1717udv xc342km x1ok0vyi x1heor9g xjbqb8w xjb2p0i x1qlqyl8 x1pd3egz x15bjb6t x16tdsg8 x1hl2dhg x1ypdohk x1t137rt x1s928wv x1j6awrg xarstr8 x11q50lq xa2q2qx x1x5eltu x1jdy9wv",
774
+ className: "x1rh3ycu x1hx0egp x78zum5 x6s0dn4 xh8yej3 xeuugli x17tes2r x17oiadl x1717udv xc342km x1ok0vyi x1heor9g xjbqb8w xjb2p0i x1qlqyl8 x1pd3egz x15bjb6t x16tdsg8 x1hl2dhg x1ypdohk x1t137rt x1s928wv x1j6awrg xarstr8 x11q50lq xa2q2qx x1x5eltu x1jdy9wv xtgyt42 x19mxcj1",
728
775
  children: r
729
- }) : /* @__PURE__ */ b("a", {
776
+ }) : /* @__PURE__ */ y("a", {
730
777
  href: t.href(e),
731
778
  "aria-label": a,
732
779
  "data-row-action": !0,
733
780
  onKeyDown: i,
734
781
  onClick: (n) => {
735
- t.onActivate !== void 0 && U(n) && (n.preventDefault(), t.onActivate(e));
782
+ t.onActivate !== void 0 && V(n) && (n.preventDefault(), t.onActivate(e));
736
783
  },
737
- className: "x1rh3ycu x1hx0egp x78zum5 x6s0dn4 xh8yej3 xeuugli x17tes2r x17oiadl x1717udv xc342km x1ok0vyi x1heor9g xjbqb8w xjb2p0i x1qlqyl8 x1pd3egz x15bjb6t x16tdsg8 x1hl2dhg x1ypdohk x1t137rt x1s928wv x1j6awrg xarstr8 x11q50lq xa2q2qx x1x5eltu x1jdy9wv",
784
+ className: "x1rh3ycu x1hx0egp x78zum5 x6s0dn4 xh8yej3 xeuugli x17tes2r x17oiadl x1717udv xc342km x1ok0vyi x1heor9g xjbqb8w xjb2p0i x1qlqyl8 x1pd3egz x15bjb6t x16tdsg8 x1hl2dhg x1ypdohk x1t137rt x1s928wv x1j6awrg xarstr8 x11q50lq xa2q2qx x1x5eltu x1jdy9wv xtgyt42 x19mxcj1",
738
785
  children: r
739
786
  });
740
- return a === void 0 ? o : /* @__PURE__ */ x(c.Root, { children: [/* @__PURE__ */ b(c.Trigger, { render: o }), /* @__PURE__ */ b(c.Portal, { children: /* @__PURE__ */ b(c.Positioner, {
787
+ return a === void 0 ? o : /* @__PURE__ */ b(c.Root, { children: [/* @__PURE__ */ y(c.Trigger, { render: o }), /* @__PURE__ */ y(c.Portal, { children: /* @__PURE__ */ y(c.Positioner, {
741
788
  side: "top",
742
789
  align: "start",
743
- children: /* @__PURE__ */ b(c.Popup, { children: a })
790
+ children: /* @__PURE__ */ y(c.Popup, { children: a })
744
791
  }) })] });
745
792
  }
746
793
  // packages/collections/src/collection-scroll.tsx
747
- function W(e) {
794
+ function H(e) {
748
795
  switch (e.status) {
749
- case "loading": return /* @__PURE__ */ b(n, {
796
+ case "loading": return /* @__PURE__ */ y(n, {
750
797
  role: "status",
751
798
  variant: "caption",
752
799
  tone: "muted",
753
800
  children: e.message ?? "Loading…"
754
801
  });
755
- case "complete": return e.message === void 0 ? null : /* @__PURE__ */ b(n, {
802
+ case "complete": return e.message === void 0 ? null : /* @__PURE__ */ y(n, {
756
803
  variant: "caption",
757
804
  tone: "muted",
758
805
  children: e.message
759
806
  });
760
- case "ready": return /* @__PURE__ */ b(i, {
807
+ case "ready": return /* @__PURE__ */ y(i, {
761
808
  onClick: e.onLoadMore,
762
809
  children: e.message ?? "Load more"
763
810
  });
764
- case "error": return /* @__PURE__ */ x(r, {
811
+ case "error": return /* @__PURE__ */ b(r, {
765
812
  role: "status",
766
- children: [/* @__PURE__ */ b(n, {
813
+ children: [/* @__PURE__ */ y(n, {
767
814
  variant: "caption",
768
815
  tone: "muted",
769
816
  children: e.message ?? "More records could not be loaded."
770
- }), /* @__PURE__ */ b(i, {
817
+ }), /* @__PURE__ */ y(i, {
771
818
  onClick: e.onLoadMore,
772
819
  children: "Retry"
773
820
  })]
774
821
  });
775
822
  }
776
823
  }
777
- function G({ children: e, endContent: t, onEndReached: n, shouldFill: r = !1, endPosition: i = "end", label: a = "Collection" }) {
778
- let o = te(), s = o.viewport, c = _(null);
824
+ function U({ children: e, endContent: t, onEndReached: n, shouldFill: r = !1, endPosition: i = "end", label: a = "Collection" }) {
825
+ let o = te(), s = o.viewport, c = g(null);
779
826
  me({
780
827
  end: c,
781
828
  viewport: r ? s : void 0,
782
829
  onEndReached: n,
783
830
  content: e
784
831
  });
785
- let l = /* @__PURE__ */ b("div", {
832
+ let l = /* @__PURE__ */ y("div", {
786
833
  ref: c,
787
834
  ...{
788
835
  0: {},
@@ -790,7 +837,7 @@ function G({ children: e, endContent: t, onEndReached: n, shouldFill: r = !1, en
790
837
  }[t !== void 0 | 0],
791
838
  children: t
792
839
  });
793
- return /* @__PURE__ */ x("div", {
840
+ return /* @__PURE__ */ b("div", {
794
841
  ref: o.ref,
795
842
  role: r ? "region" : void 0,
796
843
  "aria-label": r ? a : void 0,
@@ -807,11 +854,11 @@ function G({ children: e, endContent: t, onEndReached: n, shouldFill: r = !1, en
807
854
  });
808
855
  }
809
856
  // packages/collections/src/inspector.tsx
810
- var K = 860;
811
- function q({ master: e, detail: t, label: n, masterLabel: r, revealKey: a, returnFocusRef: o, ...s }) {
812
- let c = _(null), l = _(null), u = _(null);
813
- g(() => {
814
- a !== void 0 && c.current !== null && u.current !== null && c.current.clientWidth <= K && (u.current.focus({ preventScroll: !0 }), u.current.scrollIntoView({
857
+ var W = 860;
858
+ function G({ master: e, detail: t, label: n, masterLabel: r, revealKey: a, returnFocusRef: o, ...s }) {
859
+ let c = g(null), l = g(null), u = g(null);
860
+ re(() => {
861
+ a !== void 0 && c.current !== null && u.current !== null && c.current.clientWidth <= W && (u.current.focus({ preventScroll: !0 }), u.current.scrollIntoView({
815
862
  block: "start",
816
863
  behavior: "instant"
817
864
  }));
@@ -823,26 +870,26 @@ function q({ master: e, detail: t, label: n, masterLabel: r, revealKey: a, retur
823
870
  behavior: "instant"
824
871
  });
825
872
  }
826
- return /* @__PURE__ */ b("div", {
873
+ return /* @__PURE__ */ y("div", {
827
874
  ...f({ className: "x9vvk8s x12h1iku xeuugli xbixft x1hz01jw xtqrqnz x1778rvt" }, s),
828
- children: /* @__PURE__ */ x("div", {
875
+ children: /* @__PURE__ */ b("div", {
829
876
  ref: c,
830
877
  className: "xrvj5dj x4ruv2j x1y7acmc x7a106z x1j825kq xeuugli",
831
- children: [/* @__PURE__ */ b("div", {
878
+ children: [/* @__PURE__ */ y("div", {
832
879
  ref: l,
833
880
  role: "group",
834
881
  "aria-label": r,
835
882
  tabIndex: -1,
836
883
  className: "xeuugli",
837
884
  children: e
838
- }), /* @__PURE__ */ x("aside", {
885
+ }), /* @__PURE__ */ b("aside", {
839
886
  ref: u,
840
887
  "aria-label": n,
841
888
  tabIndex: -1,
842
889
  className: "x7wzq59 x7cfggw xqfmuo8 xeuugli x1sbza1b xhuqrux xexx8yu xdz7uhd xpilrb4 xdctr63 x1t7ytsu x97x49r x972fbf x1mg79u0 x13fuv20 xhjagg4 x14ijc3v x13qnu6 x9v5kkp x19rmrnh x12ijfkc",
843
- children: [/* @__PURE__ */ b("div", {
890
+ children: [/* @__PURE__ */ y("div", {
844
891
  className: "x1s85apg x1yamub6 x1xxlxpq",
845
- children: /* @__PURE__ */ x(i, {
892
+ children: /* @__PURE__ */ b(i, {
846
893
  variant: "ghost",
847
894
  onClick: d,
848
895
  children: ["Back to ", r.toLowerCase()]
@@ -852,15 +899,15 @@ function q({ master: e, detail: t, label: n, masterLabel: r, revealKey: a, retur
852
899
  })
853
900
  });
854
901
  }
855
- function J({ items: e, ...t }) {
856
- return /* @__PURE__ */ b("dl", {
902
+ function K({ items: e, ...t }) {
903
+ return /* @__PURE__ */ y("dl", {
857
904
  ...f({ className: "x1ghz6dp xrvj5dj xezdspq x1i3977y xuytk5h x1hz01jw xvmahel xtqrqnz x1778rvt" }, t),
858
- children: e.map(({ label: e, value: t }) => /* @__PURE__ */ x("div", {
905
+ children: e.map(({ label: e, value: t }) => /* @__PURE__ */ b("div", {
859
906
  className: "xjp7ctv",
860
- children: [/* @__PURE__ */ b("dt", {
907
+ children: [/* @__PURE__ */ y("dt", {
861
908
  className: "xeuugli x153jb6y xj0a0fe",
862
909
  children: e
863
- }), /* @__PURE__ */ b("dd", {
910
+ }), /* @__PURE__ */ y("dd", {
864
911
  className: "xeuugli x1ghz6dp xbixft xj0a0fe xss6m8b",
865
912
  children: t
866
913
  })]
@@ -868,20 +915,20 @@ function J({ items: e, ...t }) {
868
915
  });
869
916
  }
870
917
  // packages/collections/src/list-footer.tsx
871
- function Y({ children: e, actions: t, ...n }) {
872
- return /* @__PURE__ */ x("div", {
918
+ function q({ children: e, actions: t, ...n }) {
919
+ return /* @__PURE__ */ b("div", {
873
920
  ...f({ className: "x78zum5 x6s0dn4 x1qughib x1a02dak xeuugli x1n8ia3y x1qokhjc x1m92p3w x178xt8z x13fuv20 xhjagg4 x153jb6y x1hz01jw xvmahel xtqrqnz x1778rvt" }, n),
874
- children: [/* @__PURE__ */ b("div", {
921
+ children: [/* @__PURE__ */ y("div", {
875
922
  className: "xeuugli xj0a0fe",
876
923
  children: e
877
- }), t != null && /* @__PURE__ */ b("div", {
924
+ }), t != null && /* @__PURE__ */ y("div", {
878
925
  className: "x78zum5 x6s0dn4 x1a02dak x1hnptsi xeuugli",
879
926
  children: t
880
927
  })]
881
928
  });
882
929
  }
883
930
  // packages/collections/src/metrics.tsx
884
- var X = {
931
+ var J = {
885
932
  grid: {
886
933
  k1xSpc: "x78zum5",
887
934
  kwnvtZ: "x1a02dak",
@@ -974,53 +1021,53 @@ var X = {
974
1021
  kCS8Yb: "x1l7klhg",
975
1022
  $$css: !0
976
1023
  }
977
- }, Z = {
1024
+ }, Y = {
978
1025
  inline: {
979
1026
  metric: void 0,
980
1027
  label: void 0,
981
1028
  value: void 0,
982
- detail: X.inlineDetail,
1029
+ detail: J.inlineDetail,
983
1030
  valueWidth: "5ch"
984
1031
  },
985
1032
  statistic: {
986
- metric: X.statistic,
987
- label: X.stackedLabel,
988
- value: X.statisticValue,
1033
+ metric: J.statistic,
1034
+ label: J.stackedLabel,
1035
+ value: J.statisticValue,
989
1036
  detail: void 0,
990
1037
  valueWidth: "5ch"
991
1038
  },
992
1039
  headline: {
993
- metric: X.headline,
994
- label: X.headlineLabel,
995
- value: X.headlineValue,
1040
+ metric: J.headline,
1041
+ label: J.headlineLabel,
1042
+ value: J.headlineValue,
996
1043
  detail: void 0,
997
1044
  valueWidth: "9ch"
998
1045
  }
999
- }, Te = {
1000
- inline: X.grid,
1001
- columns: X.columns
1046
+ }, X = {
1047
+ inline: J.grid,
1048
+ columns: J.columns
1002
1049
  };
1003
- function Q({ layout: e = "inline", ...t }) {
1004
- return /* @__PURE__ */ b("dl", { ...f(p.props(Te[e]), t) });
1050
+ function De({ layout: e = "inline", ...t }) {
1051
+ return /* @__PURE__ */ y("dl", { ...f(p.props(X[e]), t) });
1005
1052
  }
1006
- function Ee({ label: e, value: t, detail: n, isLoading: r = !1, hasDetail: i = !1, variant: a = "inline", trend: o, ...s }) {
1007
- let c = Z[a];
1008
- return /* @__PURE__ */ x("div", {
1009
- ...f(p.props(X.metric, c.metric), s),
1053
+ function Oe({ label: e, value: t, detail: n, isLoading: r = !1, hasDetail: i = !1, variant: a = "inline", trend: o, ...s }) {
1054
+ let c = Y[a];
1055
+ return /* @__PURE__ */ b("div", {
1056
+ ...f(p.props(J.metric, c.metric), s),
1010
1057
  children: [
1011
- /* @__PURE__ */ b("dt", {
1012
- ...p.props(X.label, c.label),
1058
+ /* @__PURE__ */ y("dt", {
1059
+ ...p.props(J.label, c.label),
1013
1060
  children: e
1014
1061
  }),
1015
- /* @__PURE__ */ b("dd", {
1016
- ...p.props(X.value, c.value),
1017
- children: r ? /* @__PURE__ */ b(l, { width: c.valueWidth }) : t
1062
+ /* @__PURE__ */ y("dd", {
1063
+ ...p.props(J.value, c.value),
1064
+ children: r ? /* @__PURE__ */ y(l, { width: c.valueWidth }) : t
1018
1065
  }),
1019
- (r ? i : n !== void 0) && /* @__PURE__ */ b("dd", {
1020
- ...p.props(X.detail, c.detail),
1021
- children: r ? /* @__PURE__ */ b(l, { width: "24ch" }) : n
1066
+ (r ? i : n !== void 0) && /* @__PURE__ */ y("dd", {
1067
+ ...p.props(J.detail, c.detail),
1068
+ children: r ? /* @__PURE__ */ y(l, { width: "24ch" }) : n
1022
1069
  }),
1023
- o !== void 0 && /* @__PURE__ */ b("dd", {
1070
+ o !== void 0 && /* @__PURE__ */ y("dd", {
1024
1071
  className: "x1ghz6dp xeuugli xh8yej3 xkh2ocl",
1025
1072
  children: o
1026
1073
  })
@@ -1028,64 +1075,64 @@ function Ee({ label: e, value: t, detail: n, isLoading: r = !1, hasDetail: i = !
1028
1075
  });
1029
1076
  }
1030
1077
  // packages/collections/src/timestamp.tsx
1031
- function $({ dateTime: e, label: t, title: n }) {
1032
- return n === void 0 ? /* @__PURE__ */ b("time", {
1078
+ function ke({ dateTime: e, label: t, title: n }) {
1079
+ return n === void 0 ? /* @__PURE__ */ y("time", {
1033
1080
  dateTime: e,
1034
1081
  className: "x1hz01jw xy8obcc xas2l8k x153jb6y xss6m8b xj0a0fe x13qnu6 x9v5kkp x19rmrnh x7s97pk",
1035
1082
  children: t
1036
- }) : /* @__PURE__ */ x(c.Root, { children: [/* @__PURE__ */ b(c.Trigger, {
1037
- render: /* @__PURE__ */ b("time", {
1083
+ }) : /* @__PURE__ */ b(c.Root, { children: [/* @__PURE__ */ y(c.Trigger, {
1084
+ render: /* @__PURE__ */ y("time", {
1038
1085
  dateTime: e,
1039
1086
  tabIndex: 0,
1040
1087
  "aria-label": n,
1041
1088
  className: "x1hz01jw xy8obcc xas2l8k x153jb6y xss6m8b xj0a0fe x13qnu6 x9v5kkp x19rmrnh x7s97pk"
1042
1089
  }),
1043
1090
  children: t
1044
- }), /* @__PURE__ */ b(c.Portal, { children: /* @__PURE__ */ b(c.Positioner, { children: /* @__PURE__ */ b(c.Popup, { children: n }) }) })] });
1091
+ }), /* @__PURE__ */ y(c.Portal, { children: /* @__PURE__ */ y(c.Positioner, { children: /* @__PURE__ */ y(c.Popup, { children: n }) }) })] });
1045
1092
  }
1046
1093
  // packages/collections/src/timeline.tsx
1047
- function De({ label: e, children: t }) {
1048
- return /* @__PURE__ */ b("ol", {
1094
+ function Ae({ label: e, children: t }) {
1095
+ return /* @__PURE__ */ y("ol", {
1049
1096
  "aria-label": e,
1050
1097
  className: "xe8uvvx x1ghz6dp x1717udv xeuugli",
1051
1098
  children: t
1052
1099
  });
1053
1100
  }
1054
- function Oe({ icon: e, title: n, time: r, metadata: i, children: a, details: o, defaultOpen: s = !1 }) {
1055
- let [c, l] = v(s), u = /* @__PURE__ */ x("div", {
1101
+ function Z({ icon: e, title: n, time: r, metadata: i, children: a, details: o, defaultOpen: s = !1 }) {
1102
+ let [c, l] = _(s), u = /* @__PURE__ */ b("div", {
1056
1103
  className: "x78zum5 x1pha0wt x1hnptsi x1a02dak xeuugli",
1057
- children: [/* @__PURE__ */ b("div", {
1104
+ children: [/* @__PURE__ */ y("div", {
1058
1105
  className: "xeuugli xk4h15q xj0a0fe",
1059
- children: o === void 0 ? n : /* @__PURE__ */ b(t.Trigger, {
1106
+ children: o === void 0 ? n : /* @__PURE__ */ y(t.Trigger, {
1060
1107
  className: "x14atkfc x16exltd x17oiadl xt970qd xlqzeqv",
1061
1108
  children: n
1062
1109
  })
1063
- }), r != null && /* @__PURE__ */ b("div", {
1110
+ }), r != null && /* @__PURE__ */ y("div", {
1064
1111
  className: "xeuugli x153jb6y xy8obcc xas2l8k xss6m8b xj0a0fe",
1065
1112
  children: r
1066
1113
  })]
1067
- }), d = /* @__PURE__ */ x(y, { children: [
1114
+ }), d = /* @__PURE__ */ b(v, { children: [
1068
1115
  u,
1069
- a != null && (!c || o === void 0) && /* @__PURE__ */ b("div", {
1116
+ a != null && (!c || o === void 0) && /* @__PURE__ */ y("div", {
1070
1117
  className: "xeuugli x1ewvobj xj0a0fe",
1071
1118
  children: a
1072
1119
  }),
1073
- i != null && /* @__PURE__ */ b("div", {
1120
+ i != null && /* @__PURE__ */ y("div", {
1074
1121
  className: "xeuugli x153jb6y xy8obcc xas2l8k xj0a0fe",
1075
1122
  children: i
1076
1123
  }),
1077
- o !== void 0 && /* @__PURE__ */ b(t.Panel, { children: o })
1124
+ o !== void 0 && /* @__PURE__ */ y(t.Panel, { children: o })
1078
1125
  ] });
1079
- return /* @__PURE__ */ x("li", {
1126
+ return /* @__PURE__ */ b("li", {
1080
1127
  className: "x1n2onr6 xrvj5dj x1eqwfih x1y1mm1b xhlx3wy xeuugli x1hz01jw xvmahel xtqrqnz x1778rvt xbixft x1cpjm7i x1hmns74 x1lk18uv x1gi6gvw x1jw5pjq x1vgi0k x1mi36wk x1wse844 xup0pd7",
1081
- children: [/* @__PURE__ */ b("span", {
1128
+ children: [/* @__PURE__ */ y("span", {
1082
1129
  "aria-hidden": !0,
1083
1130
  className: "x78zum5 x6s0dn4 xl56j7k x1b1e0sl x153jb6y",
1084
1131
  children: e
1085
- }), o === void 0 ? /* @__PURE__ */ b("div", {
1132
+ }), o === void 0 ? /* @__PURE__ */ y("div", {
1086
1133
  className: "xrvj5dj x1hnptsi xeuugli",
1087
1134
  children: d
1088
- }) : /* @__PURE__ */ b(t.Root, {
1135
+ }) : /* @__PURE__ */ y(t.Root, {
1089
1136
  open: c,
1090
1137
  onOpenChange: l,
1091
1138
  className: "xrvj5dj x1hnptsi xeuugli xh8yej3",
@@ -1093,8 +1140,8 @@ function Oe({ icon: e, title: n, time: r, metadata: i, children: a, details: o,
1093
1140
  })]
1094
1141
  });
1095
1142
  }
1096
- var ke = {
1097
- Root: De,
1098
- Item: Oe
1143
+ var Q = {
1144
+ Root: Ae,
1145
+ Item: Z
1099
1146
  };
1100
- export { W as CollectionEnd, pe as CollectionPagination, G as CollectionScroll, O as CollectionToolbar, Ce as DataTable, R as DataTablePlaceholder, B as DataTableText, V as DataTableTextPlaceholder, J as Details, fe as DisplayOptions, k as FilterChips, q as Inspector, Y as ListFooter, Ee as Metric, Q as MetricGrid, ke as Timeline, $ as Timestamp };
1147
+ export { H as CollectionEnd, pe as CollectionPagination, U as CollectionScroll, D as CollectionToolbar, z as DataTable, F as DataTablePlaceholder, L as DataTableText, R as DataTableTextPlaceholder, K as Details, k as DisplayOptions, O as FilterChips, G as Inspector, q as ListFooter, Oe as Metric, De as MetricGrid, Q as Timeline, ke as Timestamp };