@mechane-ai/elements 0.63.0 → 0.65.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 (114) hide show
  1. package/README.md +18 -17
  2. package/dist/ai.js +7 -7
  3. package/dist/{article-lhByzGCW.js → article-BrUa4Wz1.js} +6 -6
  4. package/dist/article.js +1 -1
  5. package/dist/catalog.json +59 -15
  6. package/dist/{categorical-values-3g2m87_m.js → categorical-values-AXJkMt-Y.js} +1 -1
  7. package/dist/charts/cartesian.js +1 -1
  8. package/dist/charts/comparison.js +1 -1
  9. package/dist/charts/distribution.js +1 -1
  10. package/dist/charts/figure.js +12 -12
  11. package/dist/charts/graph.js +1 -1
  12. package/dist/charts/hierarchy.js +1 -1
  13. package/dist/charts/image.js +1 -1
  14. package/dist/charts/matrix.js +1 -1
  15. package/dist/charts/plot.js +3 -3
  16. package/dist/charts/relationship.js +1 -1
  17. package/dist/charts/text.js +1 -1
  18. package/dist/charts/timeline.js +2 -2
  19. package/dist/charts/trend.js +1 -1
  20. package/dist/charts.js +2 -2
  21. package/dist/{code-block-CJkiWSrX.js → code-block-BDRmjlES.js} +1 -1
  22. package/dist/collections.js +1 -1
  23. package/dist/{commands-DlitIiMJ.js → commands-rzsDElrG.js} +2 -2
  24. package/dist/content/code.js +1 -1
  25. package/dist/content/diff.js +3 -3
  26. package/dist/content/link.js +1 -1
  27. package/dist/content/markdown.js +1 -1
  28. package/dist/content/tree.js +2 -2
  29. package/dist/{content-link-DQ3tt_SK.js → content-link-DRaNf1mD.js} +1 -1
  30. package/dist/content.js +1 -1
  31. package/dist/{dates-Cvrsj4l9.js → dates-wu-gKO2C.js} +2 -2
  32. package/dist/{dumbbell-plot-CEShrjuI.js → dumbbell-plot-VFajQtEW.js} +3 -3
  33. package/dist/{embedding-map-CQZn0DCg.js → embedding-map-BqDEmy88.js} +6 -6
  34. package/dist/feedback.js +1 -1
  35. package/dist/{figure-frame-BljHBC77.js → figure-frame-Dd-pOeZN.js} +3 -3
  36. package/dist/forms/dates.js +1 -1
  37. package/dist/{forms-BYk8t91h.js → forms-Bjx7JQ30.js} +1 -1
  38. package/dist/forms.js +2 -2
  39. package/dist/{image-grid-ClMUSwqO.js → image-grid-Dpyqxgwy.js} +3 -3
  40. package/dist/index.js +1 -1
  41. package/dist/kits/evaluation.js +4 -4
  42. package/dist/kits/interpretability.js +11 -11
  43. package/dist/kits/operations.js +6 -6
  44. package/dist/kits/research.js +128 -149
  45. package/dist/kits/training.js +5 -5
  46. package/dist/layout.js +1 -1
  47. package/dist/lesson.js +3 -3
  48. package/dist/{markdown-_4ZFsDyM.js → markdown--nfaDoR1.js} +2 -2
  49. package/dist/mdx.js +6 -6
  50. package/dist/navigation/commands.js +1 -1
  51. package/dist/{navigation-CwXM887i.js → navigation-Cp3p0gss.js} +1 -1
  52. package/dist/navigation.js +4 -4
  53. package/dist/packages/collections/src/data-table-styles.d.ts +4 -0
  54. package/dist/packages/collections/src/data-table-text.d.ts +3 -1
  55. package/dist/packages/collections/src/table-query.d.ts +4 -3
  56. package/dist/packages/collections/src/use-collection-controls.d.ts +6 -0
  57. package/dist/packages/kits/src/research/collection-page.d.ts +3 -4
  58. package/dist/packages/layout/src/app-shell.d.ts +3 -1
  59. package/dist/packages/layout/src/index.d.ts +4 -4
  60. package/dist/packages/layout/src/page-inset.d.ts +5 -0
  61. package/dist/packages/layout/src/page-layout.d.ts +4 -9
  62. package/dist/packages/layout/src/page-toolbar.d.ts +1 -2
  63. package/dist/packages/layout/src/reading-column.d.ts +4 -0
  64. package/dist/packages/layout/src/record-page.d.ts +4 -6
  65. package/dist/packages/layout/src/sidebar.d.ts +3 -1
  66. package/dist/packages/layout/src/workbench.d.ts +2 -6
  67. package/dist/packages/navigation/src/current-page-click.d.ts +3 -0
  68. package/dist/packages/navigation/src/index.d.ts +1 -0
  69. package/dist/{param-BxLsoDip.js → param-CwT1RvUS.js} +1 -1
  70. package/dist/{pierre-diff-DwmKtFYy.js → pierre-diff-DuvK3kLF.js} +1 -1
  71. package/dist/{plot-layout-oXzW4fgJ.js → plot-layout-CvkeUuG6.js} +3 -3
  72. package/dist/{plot-surface-BuXeoeBq.js → plot-surface-yy37R4vs.js} +1 -1
  73. package/dist/{reference-lines-Kmxs_hXa.js → reference-lines-AMeDkYlo.js} +1 -1
  74. package/dist/{scene-AWpudPHv.js → scene-BRhI8XSy.js} +6 -6
  75. package/dist/scene.js +1 -1
  76. package/dist/{slope-chart-DzbDOBUo.js → slope-chart-BMOCaa8R.js} +4 -4
  77. package/dist/{src-yrBVxkaf.js → src-9n2M1V_y.js} +376 -399
  78. package/dist/{src-DpVApV62.js → src-BdyO4PgQ.js} +1 -1
  79. package/dist/{src-DH2Xqu32.js → src-BgmAkau8.js} +38 -32
  80. package/dist/{src-CZyleIH0.js → src-Bns-5joF.js} +4 -4
  81. package/dist/{src-CuTIcRwk.js → src-C5SH3jjU.js} +2 -2
  82. package/dist/{src-CJ-0r20F.js → src-C_E29-DX.js} +46 -32
  83. package/dist/{src-DFkzV7H0.js → src-Tu6d_Pm8.js} +541 -532
  84. package/dist/styles2.css +93 -56
  85. package/dist/{time-series-D7TCUK56.js → time-series-CTNVqoUQ.js} +8 -8
  86. package/dist/{timeline-CR5VPm_f.js → timeline-DrsDtEIW.js} +263 -254
  87. package/dist/{token-heatmap-DEpcsiRR.js → token-heatmap-DddArdH8.js} +3 -3
  88. package/dist/{token-predictions-DMYbc2-N.js → token-predictions-CBykmPID.js} +3 -3
  89. package/dist/{transport-VwKG58nR.js → transport-r1QgELf8.js} +4 -4
  90. package/dist/{tree-diagram-BqL3fTdB.js → tree-diagram-BIJFK4pl.js} +4 -4
  91. package/dist/{treemap-C0CeP3PD.js → treemap-DgmEw_mr.js} +4 -4
  92. package/dist/{use-tween-D-wmSMa8.js → use-tween-BWf44Jy4.js} +1 -1
  93. package/dist/{violin-plot-6829_9q5.js → violin-plot-BYJnv6sG.js} +3 -3
  94. package/dist/{waterfall-C5HRWlEe.js → waterfall-BNseqMas.js} +27 -24
  95. package/package.json +1 -1
  96. package/recipes/allocation-report.tsx +4 -4
  97. package/recipes/calendar-workspace.tsx +14 -10
  98. package/recipes/consequential-form.tsx +4 -4
  99. package/recipes/searchable-collection.tsx +69 -59
  100. package/recipes/sectioned-report.tsx +17 -18
  101. package/recipes/session-timeline.tsx +59 -0
  102. package/recipes/tabbed-workspace.tsx +7 -8
  103. package/recipes/workspace-files.tsx +94 -0
  104. package/recipes/workspace-report.tsx +130 -0
  105. package/skills/extend-elements/SKILL.md +20 -0
  106. package/skills/review-elements/SKILL.md +10 -7
  107. package/skills/upgrade-elements/references/releases.md +16 -0
  108. package/skills/use-elements/SKILL.md +6 -2
  109. package/skills/use-elements/references/collections.md +8 -2
  110. package/skills/use-elements/references/editorial-restraint.md +13 -18
  111. package/skills/use-elements/references/reports.md +4 -1
  112. package/skills/use-elements/references/workspace.md +18 -14
  113. package/dist/packages/layout/src/detail-page.d.ts +0 -9
  114. package/dist/packages/layout/src/page-content.d.ts +0 -5
@@ -1,35 +1,35 @@
1
- import { E as e, O as t, c as n, i as r, m as i, u as a, v as o } from "./src-DH2Xqu32.js";
2
- import { c as s } from "./src-CuTIcRwk.js";
1
+ import { E as e, O as t, c as n, i as r, m as i, u as a, v as o } from "./src-BgmAkau8.js";
2
+ import { c as s } from "./src-C5SH3jjU.js";
3
3
  import { i as c, r as l, t as u } from "./src-na2DdkKI.js";
4
- import { d } from "./src-DpVApV62.js";
4
+ import { d } from "./src-BdyO4PgQ.js";
5
5
  import { l as f, t as p } from "./constants.stylex-CqhVl0uU.js";
6
- import { t as ee } from "./accessibility-P89UG9-r.js";
7
- import { t as te } from "./use-scroll-tab-index-Dxpdh4W7.js";
8
- import { n as m } from "./forms-BYk8t91h.js";
9
- import * as h from "@stylexjs/stylex";
10
- import { Button as g } from "@ui-sdk/react/button";
11
- import { createParts as _, mergeProps as v, usePart as y, usePrimitive as b } from "@ui-sdk/react/primitive";
12
- import { Children as x, Fragment as ne, createContext as S, useContext as C, useEffect as w, useId as T, useLayoutEffect as E, useMemo as D, useRef as O, useState as k, useSyncExternalStore as re } from "react";
13
- import { byCell as A, createChange as ie, createGridFocus as ae, createSelection as j, createVirtualizer as oe, definePrimitive as M, dispatch as N, selects as se } from "@ui-sdk/core";
14
- import { Fragment as ce, jsx as P, jsxs as F } from "react/jsx-runtime";
15
- import { ArrowDown as le, ArrowUp as ue, ArrowUpDown as de, ChevronLeft as fe, ChevronRight as pe, CircleDashed as me, ListFilter as I, Search as he, Settings2 as ge, X as L } from "lucide-react";
16
- import { useShortcut as R } from "@ui-sdk/react/shortcuts";
17
- import { Toolbar as _e, ToolbarButton as z, ToolbarGroup as ve, ToolbarInput as B } from "@ui-sdk/react/toolbar";
18
- import { createColumnHelper as ye, tableFeatures as be, useTable as xe } from "@tanstack/react-table";
19
- import { Timeline as Se, TimelineDescription as Ce, TimelineItem as we, TimelineMarker as Te, TimelineTime as V, TimelineTitle as Ee } from "@ui-sdk/react/timeline";
6
+ import { t as m } from "./accessibility-P89UG9-r.js";
7
+ import { t as ee } from "./use-scroll-tab-index-Dxpdh4W7.js";
8
+ import { n as h } from "./forms-Bjx7JQ30.js";
9
+ import * as g from "@stylexjs/stylex";
10
+ import { Button as te } from "@ui-sdk/react/button";
11
+ import { createParts as _, mergeProps as v, usePart as ne, usePrimitive as y } from "@ui-sdk/react/primitive";
12
+ import { Children as b, Fragment as x, createContext as S, useContext as C, useEffect as w, useId as T, useLayoutEffect as E, useMemo as D, useRef as O, useState as k, useSyncExternalStore as A } from "react";
13
+ import { byCell as j, createChange as M, createGridFocus as re, createSelection as N, createVirtualizer as ie, definePrimitive as P, dispatch as F, selects as I } from "@ui-sdk/core";
14
+ import { Fragment as ae, jsx as L, jsxs as R } from "react/jsx-runtime";
15
+ import { ArrowDown as oe, ArrowUp as se, ArrowUpDown as ce, ChevronLeft as le, ChevronRight as ue, CircleDashed as de, ListFilter as z, Search as fe, Settings2 as pe, X as B } from "lucide-react";
16
+ import { useShortcut as V } from "@ui-sdk/react/shortcuts";
17
+ import { Toolbar as H, ToolbarButton as U, ToolbarGroup as me, ToolbarInput as W } from "@ui-sdk/react/toolbar";
18
+ import { createColumnHelper as he, tableFeatures as ge, useTable as _e } from "@tanstack/react-table";
19
+ import { Timeline as ve, TimelineDescription as ye, TimelineItem as be, TimelineMarker as G, TimelineTime as K, TimelineTitle as xe } from "@ui-sdk/react/timeline";
20
20
  // packages/collections/src/control-toolbar.tsx
21
- var H = S(!1);
22
- function U(e) {
23
- return C(H) ? /* @__PURE__ */ P(ve, { ...e }) : /* @__PURE__ */ P(H, {
21
+ var Se = S(!1);
22
+ function Ce(e) {
23
+ return C(Se) ? /* @__PURE__ */ L(me, { ...e }) : /* @__PURE__ */ L(Se, {
24
24
  value: !0,
25
- children: /* @__PURE__ */ P(_e, { ...e })
25
+ children: /* @__PURE__ */ L(H, { ...e })
26
26
  });
27
27
  }
28
- function De(e) {
29
- return C(H) ? /* @__PURE__ */ P(z, { render: e }) : e;
28
+ function we(e) {
29
+ return C(Se) ? /* @__PURE__ */ L(U, { render: e }) : e;
30
30
  }
31
31
  // packages/collections/src/collection-controls.tsx
32
- var W = {
32
+ var Te = {
33
33
  toolbar: {
34
34
  kOIVth: "x1hnptsi",
35
35
  kMwMTN: "xbixft",
@@ -44,40 +44,40 @@ var W = {
44
44
  $$css: !0
45
45
  }
46
46
  };
47
- function G({ label: e, children: t, actions: n }) {
48
- let r = x.toArray(t).length > 0, i = x.toArray(n).length > 0;
49
- return !r && !i ? null : /* @__PURE__ */ F(U, {
47
+ function Ee({ label: e, children: t, actions: n }) {
48
+ let r = b.toArray(t).length > 0, i = b.toArray(n).length > 0;
49
+ return !r && !i ? null : /* @__PURE__ */ R(Ce, {
50
50
  "aria-label": e,
51
- ...h.props(a.row, a.blockEnd, W.toolbar),
52
- children: [t, i && /* @__PURE__ */ P("div", {
51
+ ...g.props(a.row, a.blockEnd, Te.toolbar),
52
+ children: [t, i && /* @__PURE__ */ L("div", {
53
53
  className: "x78zum5 x6s0dn4 x1a02dak x1hnptsi xeuugli xvc5jky",
54
54
  children: n
55
55
  })]
56
56
  });
57
57
  }
58
- function K({ filters: e, onRemove: n, label: r = "Applied filters" }) {
59
- return e.length === 0 ? null : /* @__PURE__ */ P(U, {
58
+ function q({ filters: e, onRemove: n, label: r = "Applied filters" }) {
59
+ return e.length === 0 ? null : /* @__PURE__ */ L(Ce, {
60
60
  "aria-label": r,
61
61
  className: "x78zum5 x6s0dn4 x1a02dak x1hnptsi xeuugli",
62
- children: e.map((e) => /* @__PURE__ */ F("span", {
62
+ children: e.map((e) => /* @__PURE__ */ R("span", {
63
63
  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",
64
- children: [/* @__PURE__ */ P("span", {
64
+ children: [/* @__PURE__ */ L("span", {
65
65
  title: e.label,
66
66
  className: "xeuugli xb3r6kr xlyipyv xuxw1ft",
67
67
  children: e.label
68
- }), /* @__PURE__ */ P(z, {
69
- render: /* @__PURE__ */ P(t, {
68
+ }), /* @__PURE__ */ L(U, {
69
+ render: /* @__PURE__ */ L(t, {
70
70
  "aria-label": `Remove ${e.label}`,
71
71
  variant: "ghost",
72
- xstyle: W.remove
72
+ xstyle: Te.remove
73
73
  }),
74
74
  onClick: (t) => {
75
- N({ options: () => ({ onRemove: n }) }, "onRemove", e.id, {
75
+ F({ options: () => ({ onRemove: n }) }, "onRemove", e.id, {
76
76
  reason: "remove-press",
77
77
  event: t.nativeEvent
78
78
  });
79
79
  },
80
- children: /* @__PURE__ */ P(L, {
80
+ children: /* @__PURE__ */ L(B, {
81
81
  size: 14,
82
82
  "aria-hidden": "true"
83
83
  })
@@ -85,30 +85,30 @@ function K({ filters: e, onRemove: n, label: r = "Applied filters" }) {
85
85
  }, e.id))
86
86
  });
87
87
  }
88
- function Oe({ options: n, onChange: r, onReset: i, label: a = "Display options" }) {
89
- let o = De(/* @__PURE__ */ P(t, {
88
+ function De({ options: n, onChange: r, onReset: i, label: a = "Display options" }) {
89
+ let o = we(/* @__PURE__ */ L(t, {
90
90
  "aria-label": a,
91
91
  title: a
92
92
  }));
93
- return /* @__PURE__ */ F(l.Root, { children: [/* @__PURE__ */ P(l.Trigger, {
93
+ return /* @__PURE__ */ R(l.Root, { children: [/* @__PURE__ */ L(l.Trigger, {
94
94
  render: o,
95
- children: /* @__PURE__ */ P(ge, {
95
+ children: /* @__PURE__ */ L(pe, {
96
96
  size: 14,
97
97
  "aria-hidden": "true"
98
98
  })
99
- }), /* @__PURE__ */ F(l.Popup, {
99
+ }), /* @__PURE__ */ R(l.Popup, {
100
100
  align: "end",
101
- children: [/* @__PURE__ */ P(l.Title, { children: "Display" }), /* @__PURE__ */ F("div", {
101
+ children: [/* @__PURE__ */ L(l.Title, { children: "Display" }), /* @__PURE__ */ R("div", {
102
102
  className: "xrvj5dj x1n8ia3y xfb3i0g",
103
- children: [n.map((e) => /* @__PURE__ */ F("label", {
103
+ children: [n.map((e) => /* @__PURE__ */ R("label", {
104
104
  className: "x78zum5 x6s0dn4 x1hnptsi xbixft xtqrqnz x1hz01jw x1778rvt xeuugli xj0a0fe",
105
- children: [/* @__PURE__ */ P(s.Root, {
105
+ children: [/* @__PURE__ */ L(s.Root, {
106
106
  checked: e.isChecked,
107
107
  onCheckedChange: (t) => r(e.id, t),
108
108
  disabled: e.isRequired === !0,
109
- children: /* @__PURE__ */ P(s.Indicator, {})
109
+ children: /* @__PURE__ */ L(s.Indicator, {})
110
110
  }), e.label]
111
- }, e.id)), i !== void 0 && /* @__PURE__ */ P(e, {
111
+ }, e.id)), i !== void 0 && /* @__PURE__ */ L(e, {
112
112
  type: "button",
113
113
  variant: "ghost",
114
114
  onClick: i,
@@ -117,27 +117,27 @@ function Oe({ options: n, onChange: r, onReset: i, label: a = "Display options"
117
117
  })]
118
118
  })] });
119
119
  }
120
- function ke({ label: t, description: r, previous: i, next: a }) {
121
- return /* @__PURE__ */ F("nav", {
120
+ function Oe({ label: t, description: r, previous: i, next: a }) {
121
+ return /* @__PURE__ */ R("nav", {
122
122
  "aria-label": t === void 0 ? "Pagination" : `${t} pagination`,
123
123
  className: "x78zum5 x6s0dn4 x1qughib x1a02dak xaml1ju xeuugli",
124
- children: [/* @__PURE__ */ P(n, { children: r }), /* @__PURE__ */ F("div", {
124
+ children: [/* @__PURE__ */ L(n, { children: r }), /* @__PURE__ */ R("div", {
125
125
  className: "x78zum5 x6s0dn4 x1a02dak x1hnptsi xeuugli xvc5jky",
126
- children: [/* @__PURE__ */ F(e, {
126
+ children: [/* @__PURE__ */ R(e, {
127
127
  variant: "outline",
128
128
  "aria-label": t === void 0 ? void 0 : `Previous page of ${t}`,
129
129
  disabled: i.disabled,
130
130
  onClick: i.onClick,
131
- children: [/* @__PURE__ */ P(fe, {
131
+ children: [/* @__PURE__ */ L(le, {
132
132
  size: 16,
133
133
  "aria-hidden": "true"
134
134
  }), "Previous"]
135
- }), /* @__PURE__ */ F(e, {
135
+ }), /* @__PURE__ */ R(e, {
136
136
  variant: "outline",
137
137
  "aria-label": t === void 0 ? void 0 : `Next page of ${t}`,
138
138
  disabled: a.disabled,
139
139
  onClick: a.onClick,
140
- children: ["Next", /* @__PURE__ */ P(pe, {
140
+ children: ["Next", /* @__PURE__ */ L(ue, {
141
141
  size: 16,
142
142
  "aria-hidden": "true"
143
143
  })]
@@ -146,11 +146,11 @@ function ke({ label: t, description: r, previous: i, next: a }) {
146
146
  });
147
147
  }
148
148
  // packages/collections/src/data-table-styles.ts
149
- var Ae = {
149
+ var ke = {
150
150
  kmVPX3: "x1717udv",
151
151
  kMzoRj: "xc342km",
152
152
  $$css: !0
153
- }, je = {
153
+ }, Ae = {
154
154
  kVAEAm: "x10l6tqk",
155
155
  k87sOh: "x13vifvy",
156
156
  kLqNvP: "x1o0tod",
@@ -158,7 +158,7 @@ var Ae = {
158
158
  k33iCy: "xlshs6z",
159
159
  kfzvcC: "x47corl",
160
160
  $$css: !0
161
- }, q = {
161
+ }, J = {
162
162
  frame: {
163
163
  k7Eaqz: "xeuugli",
164
164
  kMv6JI: "x1hz01jw",
@@ -421,6 +421,11 @@ var Ae = {
421
421
  kmuXW: "xs83m0k",
422
422
  $$css: !0
423
423
  },
424
+ mono: {
425
+ kMv6JI: "xiard35",
426
+ kcqcaj: "xss6m8b",
427
+ $$css: !0
428
+ },
424
429
  adornment: {
425
430
  k1xSpc: "x3nfvp2",
426
431
  kGNEyG: "x6s0dn4",
@@ -464,7 +469,7 @@ var Ae = {
464
469
  $$css: !0
465
470
  },
466
471
  spacer: (e) => [
467
- Ae,
472
+ ke,
468
473
  {
469
474
  kZKoxP: e == null ? e : "x16ye13r",
470
475
  $$css: !0
@@ -472,7 +477,7 @@ var Ae = {
472
477
  { "--x-height": ((e) => typeof e == "number" ? e + "px" : e ?? void 0)(e) }
473
478
  ],
474
479
  sizer: (e) => [
475
- je,
480
+ Ae,
476
481
  {
477
482
  kZKoxP: e == null ? e : "x16ye13r",
478
483
  $$css: !0
@@ -515,59 +520,59 @@ var Ae = {
515
520
  }
516
521
  };
517
522
  // packages/collections/src/data-table-text.tsx
518
- function Me({ children: e, leading: t, isDecorative: n = !1 }) {
519
- let r = x.toArray(t).length > 0;
520
- return /* @__PURE__ */ F("span", {
523
+ function je({ children: e, leading: t, isDecorative: n = !1 }) {
524
+ let r = b.toArray(t).length > 0;
525
+ return /* @__PURE__ */ R("span", {
521
526
  "aria-hidden": n || void 0,
522
527
  inert: n || void 0,
523
- ...h.props(q.textRow),
524
- children: [r && /* @__PURE__ */ P("span", {
528
+ ...g.props(J.textRow),
529
+ children: [r && /* @__PURE__ */ L("span", {
525
530
  "aria-hidden": !0,
526
- ...h.props(q.adornment),
531
+ ...g.props(J.adornment),
527
532
  children: t
528
- }), /* @__PURE__ */ P("span", {
529
- ...h.props(q.textColumn),
533
+ }), /* @__PURE__ */ L("span", {
534
+ ...g.props(J.textColumn),
530
535
  children: e
531
536
  })]
532
537
  });
533
538
  }
534
- function Ne({ children: e, secondary: t, leading: n, trailing: r }) {
535
- let i = x.toArray(r).length > 0;
536
- return /* @__PURE__ */ F(Me, {
539
+ function Me({ children: e, secondary: t, leading: n, trailing: r, isMono: i = !1 }) {
540
+ let a = b.toArray(r).length > 0;
541
+ return /* @__PURE__ */ R(je, {
537
542
  leading: n,
538
- children: [/* @__PURE__ */ F("span", {
539
- ...h.props(q.primaryRow),
540
- children: [/* @__PURE__ */ P("span", {
543
+ children: [/* @__PURE__ */ R("span", {
544
+ ...g.props(J.primaryRow),
545
+ children: [/* @__PURE__ */ L("span", {
541
546
  "data-record-text": !0,
542
- title: e,
543
- ...h.props(q.text, q.primaryText, q.truncated),
547
+ title: typeof e == "string" ? e : void 0,
548
+ ...g.props(J.text, J.primaryText, J.truncated, i && J.mono),
544
549
  children: e
545
- }), i && /* @__PURE__ */ P("span", {
546
- ...h.props(q.adornment),
550
+ }), a && /* @__PURE__ */ L("span", {
551
+ ...g.props(J.adornment),
547
552
  children: r
548
553
  })]
549
- }), t !== void 0 && /* @__PURE__ */ P("span", {
554
+ }), t !== void 0 && /* @__PURE__ */ L("span", {
550
555
  title: t,
551
- ...h.props(q.text, q.truncated, q.secondaryText),
556
+ ...g.props(J.text, J.truncated, J.secondaryText),
552
557
  children: t
553
558
  })]
554
559
  });
555
560
  }
556
- function Pe({ leading: e, isSecondary: t = !1 }) {
557
- return /* @__PURE__ */ F(Me, {
561
+ function Ne({ leading: e, isSecondary: t = !1 }) {
562
+ return /* @__PURE__ */ R(je, {
558
563
  leading: e,
559
564
  isDecorative: !0,
560
- children: [/* @__PURE__ */ P("span", {
561
- ...h.props(q.text),
562
- children: /* @__PURE__ */ P(d, { width: "70%" })
563
- }), t && /* @__PURE__ */ P("span", {
564
- ...h.props(q.text, q.secondaryText),
565
- children: /* @__PURE__ */ P(d, { width: "45%" })
565
+ children: [/* @__PURE__ */ L("span", {
566
+ ...g.props(J.text),
567
+ children: /* @__PURE__ */ L(d, { width: "70%" })
568
+ }), t && /* @__PURE__ */ L("span", {
569
+ ...g.props(J.text, J.secondaryText),
570
+ children: /* @__PURE__ */ L(d, { width: "45%" })
566
571
  })]
567
572
  });
568
573
  }
569
574
  // packages/collections/src/data-table-layout.tsx
570
- var Fe = p.compactTable.slice(7), Ie = /* @__PURE__ */ new Set(["string", "number"]), J = {
575
+ var Pe = p.compactTable.slice(7), Fe = /* @__PURE__ */ new Set(["string", "number"]), Y = {
571
576
  primary: {
572
577
  minimumWidth: 240,
573
578
  isFlexible: !0,
@@ -598,62 +603,62 @@ var Fe = p.compactTable.slice(7), Ie = /* @__PURE__ */ new Set(["string", "numbe
598
603
  isFlexible: !1,
599
604
  shouldTruncate: !1
600
605
  }
606
+ }, Ie = {
607
+ fixed: J.content,
608
+ content: J.contentCell
601
609
  }, Le = {
602
- fixed: q.content,
603
- content: q.contentCell
610
+ primary: J.start,
611
+ text: J.start,
612
+ status: J.start,
613
+ number: J.end,
614
+ timestamp: J.end,
615
+ actions: J.end
604
616
  }, Re = {
605
- primary: q.start,
606
- text: q.start,
607
- status: q.start,
608
- number: q.end,
609
- timestamp: q.end,
610
- actions: q.end
617
+ content: J.content,
618
+ fill: J.fillFrame
611
619
  }, ze = {
612
- content: q.content,
613
- fill: q.fillFrame
614
- }, Be = {
615
- content: q.content,
616
- fill: q.fillViewport
620
+ content: J.content,
621
+ fill: J.fillViewport
617
622
  };
618
- function Ve(e) {
623
+ function Be(e) {
619
624
  return e.map((e) => {
620
- let t = J[e.role], n = e.width ?? (t.isFlexible ? void 0 : t.minimumWidth);
625
+ let t = Y[e.role], n = e.width ?? (t.isFlexible ? void 0 : t.minimumWidth);
621
626
  return {
622
627
  ...e,
623
628
  ...n === void 0 ? {} : { width: n }
624
629
  };
625
630
  });
626
631
  }
627
- function He(e, t = 0) {
632
+ function Ve(e, t = 0) {
628
633
  return {
629
- minimumWidth: e.reduce((e, t) => e + (t.width ?? J[t.role].minimumWidth), t),
630
- compactWidth: e.filter((e) => e.isSecondary !== !0).reduce((e, t) => e + (t.width ?? J[t.role].minimumWidth), t)
634
+ minimumWidth: e.reduce((e, t) => e + (t.width ?? Y[t.role].minimumWidth), t),
635
+ compactWidth: e.filter((e) => e.isSecondary !== !0).reduce((e, t) => e + (t.width ?? Y[t.role].minimumWidth), t)
631
636
  };
632
637
  }
633
- function Ue(e) {
634
- let t = globalThis.matchMedia(Fe);
638
+ function He(e) {
639
+ let t = globalThis.matchMedia(Pe);
635
640
  return t.addEventListener("change", e), () => t.removeEventListener("change", e);
636
641
  }
637
- function We() {
638
- return globalThis.matchMedia(Fe).matches;
642
+ function Ue() {
643
+ return globalThis.matchMedia(Pe).matches;
639
644
  }
640
- function Ge({ columns: e, canSelect: t = !1 }) {
641
- return /* @__PURE__ */ F("colgroup", { children: [t && /* @__PURE__ */ P("col", { ...h.props(q.selection) }), e.map((e) => /* @__PURE__ */ P("col", { ...h.props(e.width !== void 0 && q.width(e.width), e.isSecondary === !0 && q.secondary) }, e.id))] });
645
+ function We({ columns: e, canSelect: t = !1 }) {
646
+ return /* @__PURE__ */ R("colgroup", { children: [t && /* @__PURE__ */ L("col", { ...g.props(J.selection) }), e.map((e) => /* @__PURE__ */ L("col", { ...g.props(e.width !== void 0 && J.width(e.width), e.isSecondary === !0 && J.secondary) }, e.id))] });
642
647
  }
643
- function Ke({ role: e, isFixed: t, shouldTruncate: n, children: r }) {
644
- let i = J[e], a = t && i.shouldTruncate, o = typeof r == "string" && (n ?? a);
645
- return /* @__PURE__ */ P("span", {
646
- ...h.props(q.cellViewport, !t && q.contentViewport),
647
- children: /* @__PURE__ */ P("span", {
648
- "data-record-text": Ie.has(typeof r) || void 0,
648
+ function Ge({ role: e, isFixed: t, shouldTruncate: n, children: r }) {
649
+ let i = Y[e], a = t && i.shouldTruncate, o = n === !0 || typeof r == "string" && (n ?? a);
650
+ return /* @__PURE__ */ L("span", {
651
+ ...g.props(J.cellViewport, !t && J.contentViewport),
652
+ children: /* @__PURE__ */ L("span", {
653
+ "data-record-text": Fe.has(typeof r) || void 0,
649
654
  title: typeof r == "string" ? r : void 0,
650
- ...h.props(q.cellContent, t && q.fixedContent, t && !i.shouldTruncate && q.readable, o && q.truncated),
655
+ ...g.props(J.cellContent, t && J.fixedContent, t && !i.shouldTruncate && J.readable, o && J.truncated),
651
656
  children: r
652
657
  })
653
658
  });
654
659
  }
655
660
  // packages/collections/src/table-results.tsx
656
- function qe({ status: e, sort: t, selected: n, pagination: r, isPlaceholder: i }) {
661
+ function Ke({ status: e, sort: t, selected: n, pagination: r, isPlaceholder: i }) {
657
662
  return {
658
663
  status: e,
659
664
  pending: e === "pending",
@@ -665,24 +670,24 @@ function qe({ status: e, sort: t, selected: n, pagination: r, isPlaceholder: i }
665
670
  isPlaceholder: i
666
671
  };
667
672
  }
668
- var Y = "[hidden], [inert], [aria-hidden=\"true\"], [data-agent-hidden], [data-agent-secret]";
669
- function Je(e) {
673
+ var X = "[hidden], [inert], [aria-hidden=\"true\"], [data-agent-hidden], [data-agent-secret]";
674
+ function qe(e) {
670
675
  let t = e instanceof HTMLTableElement ? e.tBodies[0] : void 0;
671
- if (t !== void 0 && t.closest(Y) === null) return new Map(Array.from(t.rows).flatMap((e) => {
676
+ if (t !== void 0 && t.closest(X) === null) return new Map(Array.from(t.rows).flatMap((e) => {
672
677
  let t = e.dataset.rowId, n = Array.from(e.cells).find((e) => e.dataset.recordLabel !== void 0);
673
678
  if (t === void 0 || n === void 0) return [];
674
- if (n.closest(Y) !== null || n.querySelector("[data-agent-secret], [data-agent-hidden]") !== null || !n.checkVisibility({ visibilityProperty: !0 })) return [[t, null]];
679
+ if (n.closest(X) !== null || n.querySelector("[data-agent-secret], [data-agent-hidden]") !== null || !n.checkVisibility({ visibilityProperty: !0 })) return [[t, null]];
675
680
  let r = n.querySelector("[data-row-action][aria-label]") ?? n.querySelector("[data-record-text]");
676
- if (r !== null && r.closest(Y) !== null || r?.checkVisibility({ visibilityProperty: !0 }) === !1) return [[t, null]];
681
+ if (r !== null && r.closest(X) !== null || r?.checkVisibility({ visibilityProperty: !0 }) === !1) return [[t, null]];
677
682
  let i = r?.getAttribute("aria-label") ?? r?.textContent.trim();
678
683
  return [[t, i === void 0 || i.length === 0 ? t : i]];
679
684
  }));
680
685
  }
681
- var Ye = {
686
+ var Je = {
682
687
  none: "ascending",
683
688
  ascending: "descending",
684
689
  descending: "none"
685
- }, Xe = /* @__PURE__ */ new Set(["ascending", "descending"]), Ze = /* @__PURE__ */ new Set(["Home", "End"]), Qe = M({
690
+ }, Ye = /* @__PURE__ */ new Set(["ascending", "descending"]), Xe = /* @__PURE__ */ new Set(["Home", "End"]), Ze = P({
686
691
  name: "collection-results",
687
692
  options: {
688
693
  status: "string",
@@ -700,10 +705,10 @@ var Ye = {
700
705
  isPlaceholder: "boolean"
701
706
  },
702
707
  state: (e) => ({
703
- ...qe(e),
708
+ ...Ke(e),
704
709
  active: null
705
710
  }),
706
- sync: qe,
711
+ sync: Ke,
707
712
  controlled: [
708
713
  "status",
709
714
  "sort",
@@ -713,7 +718,7 @@ var Ye = {
713
718
  "hasNextPage"
714
719
  ],
715
720
  api: (e) => {
716
- let t = ie(e), n = ae(e, {
721
+ let t = M(e), n = re(e, {
717
722
  key: "active",
718
723
  rows: () => e.options().rowIds.length,
719
724
  cols: () => 1,
@@ -729,7 +734,7 @@ var Ye = {
729
734
  col: 0
730
735
  } });
731
736
  });
732
- let i = j(e, {
737
+ let i = N(e, {
733
738
  key: "selected",
734
739
  set: (e, n) => t("selected", e, n),
735
740
  order: () => e.options().rowIds,
@@ -754,7 +759,7 @@ var Ye = {
754
759
  return {
755
760
  grid: n,
756
761
  rowKeydown(t) {
757
- t.shiftKey || (t.metaKey || t.ctrlKey || !Ze.has(t.key) ? n.keydown(t) : (t.preventDefault(), n.focus({
762
+ t.shiftKey || (t.metaKey || t.ctrlKey || !Xe.has(t.key) ? n.keydown(t) : (t.preventDefault(), n.focus({
758
763
  row: t.key === "Home" ? 0 : e.options().rowIds.length - 1,
759
764
  col: 0
760
765
  }, {
@@ -767,7 +772,7 @@ var Ye = {
767
772
  col: 0
768
773
  }),
769
774
  toggleSort(n, r) {
770
- let { sort: i } = e.options(), a = Ye[i?.columnId === n ? i.direction : "none"];
775
+ let { sort: i } = e.options(), a = Je[i?.columnId === n ? i.direction : "none"];
771
776
  return t("sort", a === "none" ? null : {
772
777
  columnId: n,
773
778
  direction: a
@@ -791,7 +796,7 @@ var Ye = {
791
796
  },
792
797
  sort(e, n = "ascending") {
793
798
  if (n === "none") return t("sort", null, { reason: "imperative" });
794
- if (!Xe.has(n)) throw Error("The direction is ascending, descending or none.");
799
+ if (!Ye.has(n)) throw Error("The direction is ascending, descending or none.");
795
800
  return t("sort", {
796
801
  columnId: o(e),
797
802
  direction: n === "descending" ? "descending" : "ascending"
@@ -811,7 +816,7 @@ var Ye = {
811
816
  previousPage: () => s("previous"),
812
817
  nextPage: () => s("next"),
813
818
  records() {
814
- let t = Je(e.element("root")), { rowIds: n, rowLabel: r } = e.options();
819
+ let t = qe(e.element("root")), { rowIds: n, rowLabel: r } = e.options();
815
820
  if (t === void 0) return [];
816
821
  let i = Array.from(t.values()).includes(null);
817
822
  return n.flatMap((e, n) => {
@@ -832,7 +837,7 @@ var Ye = {
832
837
  row: "number",
833
838
  col: "number"
834
839
  },
835
- selects: se({ active: A }),
840
+ selects: I({ active: j }),
836
841
  attrs: (e, { props: t, api: n }) => ({ tabindex: n.grid.tabIndex(e, t) }),
837
842
  on: {
838
843
  keydown: (e, { api: t }) => t.rowKeydown(e),
@@ -858,28 +863,28 @@ var Ye = {
858
863
  shown: (e) => !e.isPlaceholder
859
864
  }
860
865
  });
861
- function $e(e, t) {
862
- let n = b(Qe, e), r = y(n, "root", {}, t(n.api), "table");
866
+ function Qe(e, t) {
867
+ let n = y(Ze, e), r = ne(n, "root", {}, t(n.api), "table");
863
868
  return {
864
869
  api: n.api,
865
870
  element: r
866
871
  };
867
872
  }
868
- var et = _(Qe, {
873
+ var $e = _(Ze, {
869
874
  root: "table",
870
875
  trigger: "a"
871
- }).Trigger, tt = _(Qe, {
876
+ }).Trigger, et = _(Ze, {
872
877
  root: "table",
873
878
  trigger: "button"
874
879
  }).Trigger;
875
880
  // packages/collections/src/data-table-trigger.tsx
876
- function nt(e) {
881
+ function tt(e) {
877
882
  if (e.defaultPrevented || e.button !== 0) return !1;
878
883
  let t = e.metaKey || e.ctrlKey, n = e.altKey || e.shiftKey;
879
884
  return t || n ? !1 : e.detail === 0 || e.currentTarget.ownerDocument.getSelection()?.isCollapsed !== !1;
880
885
  }
881
- function rt({ index: e, recordId: t, row: n, action: r, isActive: i, children: a }) {
882
- let o = r.label?.(n), s = r.href === void 0 ? /* @__PURE__ */ P(tt, {
886
+ function nt({ index: e, recordId: t, row: n, action: r, isActive: i, children: a }) {
887
+ let o = r.label?.(n), s = r.href === void 0 ? /* @__PURE__ */ L(et, {
883
888
  value: t,
884
889
  row: e,
885
890
  col: 0,
@@ -889,11 +894,11 @@ function rt({ index: e, recordId: t, row: n, action: r, isActive: i, children: a
889
894
  "aria-pressed": i,
890
895
  "data-row-action": !0,
891
896
  onClick: (e) => {
892
- nt(e) && r.onActivate(n);
897
+ tt(e) && r.onActivate(n);
893
898
  },
894
- ...h.props(q.trigger),
899
+ ...g.props(J.trigger),
895
900
  children: a
896
- }) : /* @__PURE__ */ P(et, {
901
+ }) : /* @__PURE__ */ L($e, {
897
902
  value: t,
898
903
  row: e,
899
904
  col: 0,
@@ -901,19 +906,19 @@ function rt({ index: e, recordId: t, row: n, action: r, isActive: i, children: a
901
906
  href: r.href(n),
902
907
  "data-row-action": !0,
903
908
  onClick: (e) => {
904
- r.onActivate !== void 0 && nt(e) && (e.preventDefault(), r.onActivate(n));
909
+ r.onActivate !== void 0 && tt(e) && (e.preventDefault(), r.onActivate(n));
905
910
  },
906
- ...h.props(q.trigger),
911
+ ...g.props(J.trigger),
907
912
  children: a
908
913
  });
909
- return o === void 0 || r.showTooltip !== !0 ? s : /* @__PURE__ */ F(u.Root, { children: [/* @__PURE__ */ P(u.Trigger, { render: s }), /* @__PURE__ */ P(u.Popup, {
914
+ return o === void 0 || r.showTooltip !== !0 ? s : /* @__PURE__ */ R(u.Root, { children: [/* @__PURE__ */ L(u.Trigger, { render: s }), /* @__PURE__ */ L(u.Popup, {
910
915
  side: "top",
911
916
  align: "start",
912
917
  children: o
913
918
  })] });
914
919
  }
915
920
  // packages/collections/src/use-end-reached.ts
916
- function it({ end: e, viewport: t, onEndReached: n, content: r }) {
921
+ function rt({ end: e, viewport: t, onEndReached: n, content: r }) {
917
922
  w(() => {
918
923
  if (n === void 0 || e.current === null) return;
919
924
  let r = new IntersectionObserver((e) => {
@@ -928,10 +933,10 @@ function it({ end: e, viewport: t, onEndReached: n, content: r }) {
928
933
  ]);
929
934
  }
930
935
  // packages/collections/src/use-table-window.ts
931
- var at = [];
932
- function ot(e) {
936
+ var it = [];
937
+ function at(e) {
933
938
  let t = O(e), [{ rows: n, subscribe: r, readItems: i, scrollToIndex: a }] = k(() => {
934
- let e = oe({
939
+ let e = ie({
935
940
  count: () => t.current.count,
936
941
  estimate: () => t.current.estimate,
937
942
  key: (e) => t.current.keyOf(e),
@@ -960,7 +965,7 @@ function ot(e) {
960
965
  n,
961
966
  c
962
967
  ]), {
963
- items: re(r, i, () => at),
968
+ items: A(r, i, () => it),
964
969
  size: n.size(),
965
970
  scrollToIndex: a,
966
971
  measure(e) {
@@ -972,12 +977,12 @@ function ot(e) {
972
977
  };
973
978
  }
974
979
  // packages/collections/src/data-table-rows.tsx
975
- var st = be({}), ct = {
976
- ascending: ue,
977
- descending: le,
978
- none: de
980
+ var ot = ge({}), st = {
981
+ ascending: se,
982
+ descending: oe,
983
+ none: ce
979
984
  };
980
- function lt(e, t) {
985
+ function ct(e, t) {
981
986
  let n = O(void 0);
982
987
  w(() => {
983
988
  if (t === void 0) {
@@ -993,94 +998,94 @@ function lt(e, t) {
993
998
  };
994
999
  }, [e, t]);
995
1000
  }
996
- function X({ rows: e, columns: t, getRowId: n, caption: r, empty: i, sort: a, onSortChange: o, selectedIds: c, onSelectionChange: l, selectionLabel: u, rowAction: d, activeRowId: p, focusRowId: m, onRowHighlightChange: _, hideCaption: v = !1, hideHeaders: y = !1, rowSizing: b = "fixed", window: x, endContent: S, onEndReached: C, footer: T, pagination: A, resultStatus: ie = "ready", isPlaceholder: ae = !1 }) {
997
- let j = D(() => Ve(t), [t]), oe = re(Ue, We, () => !1), M = D(() => {
998
- let e = ye();
999
- return e.columns(j.map((t) => e.display({
1001
+ function lt({ rows: e, columns: t, getRowId: n, caption: r, empty: i, sort: a, onSortChange: o, selectedIds: c, onSelectionChange: l, selectionLabel: u, rowAction: d, activeRowId: p, focusRowId: h, onRowHighlightChange: _, hideCaption: v = !1, hideHeaders: ne = !1, rowSizing: y = "fixed", window: b, endContent: S, onEndReached: C, footer: T, pagination: j, resultStatus: M = "ready", isPlaceholder: re = !1 }) {
1002
+ let N = D(() => Be(t), [t]), ie = A(He, Ue, () => !1), P = D(() => {
1003
+ let e = he();
1004
+ return e.columns(N.map((t) => e.display({
1000
1005
  id: t.id,
1001
1006
  header: t.label
1002
1007
  })));
1003
- }, [j]), N = xe({
1004
- features: st,
1005
- columns: M,
1008
+ }, [N]), F = _e({
1009
+ features: ot,
1010
+ columns: P,
1006
1011
  data: e,
1007
1012
  getRowId: n
1008
- }), se = te(), le = se.viewport, ue = O(null), de = O(null), fe = O(null), [pe, me] = k(0), [I, he] = k(), [ge, L] = k(), R = O(void 0), _e = O(void 0), z = D(() => e.map(n), [e, n]), ve = I === void 0 ? -1 : z.indexOf(I.id), B = I?.isWithin === !0 ? ve : -1, be = B === -1 ? void 0 : I?.id, Se = j.findIndex((e) => e.role === "primary" && e.isSecondary !== !0), Ce = Se === -1 ? j.findIndex((e) => e.isSecondary !== !0) : Se, we = typeof x?.height == "string" ? x.height : "content", Te = d !== void 0 && d.disabled !== !0;
1009
- it({
1010
- end: ue,
1011
- onEndReached: x === void 0 ? C : void 0,
1013
+ }), I = ee(), oe = I.viewport, se = O(null), ce = O(null), le = O(null), [ue, de] = k(0), [z, fe] = k(), [pe, B] = k(), V = O(void 0), H = O(void 0), U = D(() => e.map(n), [e, n]), me = z === void 0 ? -1 : U.indexOf(z.id), W = z?.isWithin === !0 ? me : -1, ge = W === -1 ? void 0 : z?.id, ve = N.findIndex((e) => e.role === "primary" && e.isSecondary !== !0), ye = ve === -1 ? N.findIndex((e) => e.isSecondary !== !0) : ve, be = typeof b?.height == "string" ? b.height : "content", G = d !== void 0 && d.disabled !== !0;
1014
+ rt({
1015
+ end: se,
1016
+ onEndReached: b === void 0 ? C : void 0,
1012
1017
  content: e.length
1013
1018
  }), w(() => {
1014
- let e = de.current, t = fe.current;
1015
- if (x === void 0 || e === null || t === null) return;
1016
- let n = new ResizeObserver(() => me(e.offsetHeight + t.offsetHeight));
1019
+ let e = ce.current, t = le.current;
1020
+ if (b === void 0 || e === null || t === null) return;
1021
+ let n = new ResizeObserver(() => de(e.offsetHeight + t.offsetHeight));
1017
1022
  return n.observe(e), n.observe(t), () => n.disconnect();
1018
1023
  }, [
1019
- x,
1024
+ b,
1020
1025
  v,
1021
- y
1026
+ ne
1022
1027
  ]);
1023
- let V = ot({
1024
- isEnabled: x !== void 0,
1025
- viewport: le,
1028
+ let K = at({
1029
+ isEnabled: b !== void 0,
1030
+ viewport: oe,
1026
1031
  count: e.length,
1027
- keyOf: (e) => z[e] ?? String(e),
1028
- estimate: b === "fixed" ? f.rowHeight : x?.estimatedRowHeight ?? f.rowHeight,
1029
- margin: pe,
1032
+ keyOf: (e) => U[e] ?? String(e),
1033
+ estimate: y === "fixed" ? f.rowHeight : b?.estimatedRowHeight ?? f.rowHeight,
1034
+ margin: ue,
1030
1035
  keep: () => [
1031
- Math.max(0, ve),
1032
- B - 1,
1033
- B,
1034
- B + 1
1036
+ Math.max(0, me),
1037
+ W - 1,
1038
+ W,
1039
+ W + 1
1035
1040
  ],
1036
1041
  onEnd: C
1037
1042
  });
1038
1043
  w(() => {
1039
- x !== void 0 && e.length === 0 && C?.();
1044
+ b !== void 0 && e.length === 0 && C?.();
1040
1045
  }, [
1041
- x,
1046
+ b,
1042
1047
  e.length,
1043
1048
  C
1044
1049
  ]);
1045
- function Ee(e) {
1046
- return le.current?.querySelector(`[data-row-id="${CSS.escape(e)}"] [data-row-action]`) ?? null;
1050
+ function xe(e) {
1051
+ return oe.current?.querySelector(`[data-row-id="${CSS.escape(e)}"] [data-row-action]`) ?? null;
1047
1052
  }
1048
- let H = D(() => o === void 0 ? [] : j.filter((e) => e.canSort === !0).map(({ id: e, label: t }) => ({
1053
+ let Se = D(() => o === void 0 ? [] : N.filter((e) => e.canSort === !0).map(({ id: e, label: t }) => ({
1049
1054
  id: e,
1050
1055
  label: t
1051
- })), [j, o]), U = D(() => c === void 0 ? null : Array.from(c), [c]), De = {
1052
- status: ie,
1056
+ })), [N, o]), Ce = D(() => c === void 0 ? null : Array.from(c), [c]), we = {
1057
+ status: M,
1053
1058
  sort: a ?? null,
1054
1059
  onSortChange: o === void 0 ? void 0 : (e, t) => o(e ?? void 0, t),
1055
- sortable: H,
1056
- selected: U,
1060
+ sortable: Se,
1061
+ selected: Ce,
1057
1062
  onSelectedChange: l === void 0 ? void 0 : (e, t) => l(new Set(e), t),
1058
- pagination: A,
1059
- rowIds: z,
1063
+ pagination: j,
1064
+ rowIds: U,
1060
1065
  rowLabel: (t) => {
1061
1066
  let n = e[t];
1062
1067
  return n === void 0 ? void 0 : d?.label?.(n) ?? u?.(n);
1063
1068
  },
1064
- isActionable: Te,
1069
+ isActionable: G,
1065
1070
  reveal: (e) => {
1066
- x !== void 0 && V.scrollToIndex(e);
1071
+ b !== void 0 && K.scrollToIndex(e);
1067
1072
  },
1068
1073
  onOpen: (e) => {
1069
- let t = z[e], n = t === void 0 ? null : Ee(t);
1070
- n === null ? (_e.current = t, V.scrollToIndex(e)) : n.click();
1074
+ let t = U[e], n = t === void 0 ? null : xe(t);
1075
+ n === null ? (H.current = t, K.scrollToIndex(e)) : n.click();
1071
1076
  },
1072
- isPlaceholder: ae
1077
+ isPlaceholder: re
1073
1078
  };
1074
1079
  E(() => {
1075
- let e = _e.current;
1076
- e !== void 0 && (_e.current = void 0, Ee(e)?.click());
1080
+ let e = H.current;
1081
+ e !== void 0 && (H.current = void 0, xe(e)?.click());
1077
1082
  });
1078
- let W = x === void 0 ? N.getRowModel().rows.map((e, t) => ({
1083
+ let Te = b === void 0 ? F.getRowModel().rows.map((e, t) => ({
1079
1084
  row: e,
1080
1085
  index: t,
1081
1086
  spacerHeight: 0
1082
- })) : V.items.flatMap((e, t, n) => {
1083
- let r = N.getRowModel().rows[e.index], i = n[t - 1];
1087
+ })) : K.items.flatMap((e, t, n) => {
1088
+ let r = F.getRowModel().rows[e.index], i = n[t - 1];
1084
1089
  if (r === void 0) return [];
1085
1090
  let a = i === void 0 ? 0 : i.start + i.size;
1086
1091
  return [{
@@ -1088,122 +1093,122 @@ function X({ rows: e, columns: t, getRowId: n, caption: r, empty: i, sort: a, on
1088
1093
  index: e.index,
1089
1094
  spacerHeight: e.start - a
1090
1095
  }];
1091
- }), G = W.some(({ row: e }) => e.id === ge) ? ge : void 0;
1092
- ge !== void 0 && G === void 0 && L(void 0), lt(G ?? be, _);
1093
- let K = j.filter((e) => !oe || e.isSecondary !== !0).length + (c === void 0 ? 0 : 1), Oe = c === void 0 ? 0 : 76, Ae = T != null && typeof T != "boolean" || A !== void 0, { minimumWidth: je, compactWidth: Me } = He(j, Oe), Ne = V.items.at(-1), Pe = V.size - (Ne === void 0 ? 0 : Ne.start + Ne.size), Fe = c === void 0 ? 0 : z.filter((e) => c.has(e)).length, Ie = z.length > 0 && Fe === z.length, J = Fe > 0 && !Ie;
1094
- function qe(t) {
1095
- return /* @__PURE__ */ F(ce, { children: [
1096
- /* @__PURE__ */ P("caption", {
1097
- ref: de,
1096
+ }), Ee = Te.some(({ row: e }) => e.id === pe) ? pe : void 0;
1097
+ pe !== void 0 && Ee === void 0 && B(void 0), ct(Ee ?? ge, _);
1098
+ let q = N.filter((e) => !ie || e.isSecondary !== !0).length + (c === void 0 ? 0 : 1), De = c === void 0 ? 0 : 76, ke = T != null && typeof T != "boolean" || j !== void 0, { minimumWidth: Ae, compactWidth: je } = Ve(N, De), Me = K.items.at(-1), Ne = K.size - (Me === void 0 ? 0 : Me.start + Me.size), Pe = c === void 0 ? 0 : U.filter((e) => c.has(e)).length, Fe = U.length > 0 && Pe === U.length, Y = Pe > 0 && !Fe;
1099
+ function Ke(t) {
1100
+ return /* @__PURE__ */ R(ae, { children: [
1101
+ /* @__PURE__ */ L("caption", {
1102
+ ref: ce,
1098
1103
  "aria-label": r,
1099
- ...h.props(q.caption, v && ee.hidden),
1104
+ ...g.props(J.caption, v && m.hidden),
1100
1105
  children: r
1101
1106
  }),
1102
- /* @__PURE__ */ P(Ge, {
1103
- columns: j,
1107
+ /* @__PURE__ */ L(We, {
1108
+ columns: N,
1104
1109
  canSelect: c !== void 0
1105
1110
  }),
1106
- /* @__PURE__ */ P("thead", {
1107
- ref: fe,
1108
- ...h.props(y && ee.hidden),
1109
- children: /* @__PURE__ */ F("tr", { children: [c !== void 0 && /* @__PURE__ */ P("th", {
1111
+ /* @__PURE__ */ L("thead", {
1112
+ ref: le,
1113
+ ...g.props(ne && m.hidden),
1114
+ children: /* @__PURE__ */ R("tr", { children: [c !== void 0 && /* @__PURE__ */ L("th", {
1110
1115
  scope: "col",
1111
1116
  "aria-label": "Select",
1112
- ...h.props(q.header, q.selection, q.rowControl),
1113
- children: /* @__PURE__ */ P(s.Root, {
1117
+ ...g.props(J.header, J.selection, J.rowControl),
1118
+ children: /* @__PURE__ */ L(s.Root, {
1114
1119
  "aria-label": `Select every row of ${r}`,
1115
- checked: Ie,
1116
- indeterminate: J,
1117
- disabled: z.length === 0,
1120
+ checked: Fe,
1121
+ indeterminate: Y,
1122
+ disabled: U.length === 0,
1118
1123
  onCheckedChange: (e, n) => t.toggleAll(n.event),
1119
- children: /* @__PURE__ */ P(s.Indicator, {})
1124
+ children: /* @__PURE__ */ L(s.Indicator, {})
1120
1125
  })
1121
- }), j.map((e) => {
1122
- let n = a?.columnId === e.id ? a.direction : void 0, i = ct[n ?? "none"];
1123
- return /* @__PURE__ */ P("th", {
1126
+ }), N.map((e) => {
1127
+ let n = a?.columnId === e.id ? a.direction : void 0, i = st[n ?? "none"];
1128
+ return /* @__PURE__ */ L("th", {
1124
1129
  scope: "col",
1125
1130
  title: e.label,
1126
1131
  "aria-sort": n,
1127
- ...h.props(q.header, Re[e.role], e.width !== void 0 && q.width(e.width), e.isSecondary === !0 && q.secondary),
1128
- children: e.canSort === !0 && o !== void 0 ? /* @__PURE__ */ F(g, {
1132
+ ...g.props(J.header, Le[e.role], e.width !== void 0 && J.width(e.width), e.isSecondary === !0 && J.secondary),
1133
+ children: e.canSort === !0 && o !== void 0 ? /* @__PURE__ */ R(te, {
1129
1134
  type: "button",
1130
1135
  "aria-label": `Sort ${r} by ${e.label}`,
1131
- ...h.props(q.sort),
1136
+ ...g.props(J.sort),
1132
1137
  onClick: (n) => t.toggleSort(e.id, n.nativeEvent),
1133
- children: [/* @__PURE__ */ P("span", {
1134
- ...h.props(q.headerLabel),
1138
+ children: [/* @__PURE__ */ L("span", {
1139
+ ...g.props(J.headerLabel),
1135
1140
  children: e.label
1136
- }), /* @__PURE__ */ P(i, {
1141
+ }), /* @__PURE__ */ L(i, {
1137
1142
  size: 14,
1138
1143
  "aria-hidden": "true",
1139
- ...h.props(q.sortIcon)
1144
+ ...g.props(J.sortIcon)
1140
1145
  })]
1141
- }) : /* @__PURE__ */ P("span", {
1142
- ...h.props(q.headerLabel),
1146
+ }) : /* @__PURE__ */ L("span", {
1147
+ ...g.props(J.headerLabel),
1143
1148
  children: e.label
1144
1149
  })
1145
1150
  }, e.id);
1146
1151
  })] })
1147
1152
  }),
1148
- /* @__PURE__ */ F("tbody", {
1149
- onPointerLeave: () => L(void 0),
1150
- onKeyDownCapture: () => L(void 0),
1153
+ /* @__PURE__ */ R("tbody", {
1154
+ onPointerLeave: () => B(void 0),
1155
+ onKeyDownCapture: () => B(void 0),
1151
1156
  onBlur: (e) => {
1152
- e.currentTarget.contains(e.relatedTarget) || he((e) => e === void 0 ? void 0 : {
1157
+ e.currentTarget.contains(e.relatedTarget) || fe((e) => e === void 0 ? void 0 : {
1153
1158
  id: e.id,
1154
1159
  isWithin: !1
1155
1160
  });
1156
1161
  },
1157
1162
  children: [
1158
- W.map(({ row: e, index: n, spacerHeight: r }) => /* @__PURE__ */ F(ne, { children: [r > 0 && /* @__PURE__ */ P("tr", {
1163
+ Te.map(({ row: e, index: n, spacerHeight: r }) => /* @__PURE__ */ R(x, { children: [r > 0 && /* @__PURE__ */ L("tr", {
1159
1164
  "aria-hidden": "true",
1160
- children: /* @__PURE__ */ P("td", {
1161
- colSpan: K,
1162
- ...h.props(q.spacer(r))
1165
+ children: /* @__PURE__ */ L("td", {
1166
+ colSpan: q,
1167
+ ...g.props(J.spacer(r))
1163
1168
  })
1164
- }), /* @__PURE__ */ F("tr", {
1169
+ }), /* @__PURE__ */ R("tr", {
1165
1170
  "data-index": n,
1166
1171
  "data-row-id": e.id,
1167
- "aria-rowindex": x === void 0 ? void 0 : n + 2,
1168
- ref: x === void 0 || b === "fixed" ? void 0 : V.measure(n),
1172
+ "aria-rowindex": b === void 0 ? void 0 : n + 2,
1173
+ ref: b === void 0 || y === "fixed" ? void 0 : K.measure(n),
1169
1174
  onPointerMove: (t) => {
1170
- t.pointerType === "mouse" && L(e.id);
1175
+ t.pointerType === "mouse" && B(e.id);
1171
1176
  },
1172
1177
  onPointerEnter: (t) => {
1173
- t.pointerType === "mouse" && L(e.id);
1178
+ t.pointerType === "mouse" && B(e.id);
1174
1179
  },
1175
1180
  onPointerLeave: () => {
1176
- L((t) => t === e.id ? void 0 : t);
1181
+ B((t) => t === e.id ? void 0 : t);
1177
1182
  },
1178
1183
  onPointerDown: (e) => {
1179
- e.pointerType !== "mouse" && L(void 0);
1184
+ e.pointerType !== "mouse" && B(void 0);
1180
1185
  },
1181
1186
  onFocus: () => {
1182
- L(void 0), he({
1187
+ B(void 0), fe({
1183
1188
  id: e.id,
1184
1189
  isWithin: !0
1185
1190
  });
1186
1191
  },
1187
- ...h.props(q.row, Te && q.actionable, (c?.has(e.id) === !0 || p === e.id) && q.selected),
1188
- children: [c !== void 0 && /* @__PURE__ */ P("td", {
1189
- ...h.props(q.cell, q.selection, q.rowControl),
1190
- children: /* @__PURE__ */ P(s.Root, {
1192
+ ...g.props(J.row, G && J.actionable, (c?.has(e.id) === !0 || p === e.id) && J.selected),
1193
+ children: [c !== void 0 && /* @__PURE__ */ L("td", {
1194
+ ...g.props(J.cell, J.selection, J.rowControl),
1195
+ children: /* @__PURE__ */ L(s.Root, {
1191
1196
  "aria-label": u(e.original),
1192
1197
  checked: c.has(e.id),
1193
1198
  onCheckedChange: (n, r) => t.toggleRow(e.id, r.event),
1194
- children: /* @__PURE__ */ P(s.Indicator, {})
1199
+ children: /* @__PURE__ */ L(s.Indicator, {})
1195
1200
  })
1196
- }), j.map((t, r) => {
1197
- let i = /* @__PURE__ */ P(Ke, {
1201
+ }), N.map((t, r) => {
1202
+ let i = /* @__PURE__ */ L(Ge, {
1198
1203
  role: t.role,
1199
- isFixed: b === "fixed",
1204
+ isFixed: y === "fixed",
1200
1205
  shouldTruncate: t.shouldTruncate,
1201
1206
  children: t.cell(e.original)
1202
1207
  });
1203
- return /* @__PURE__ */ P("td", {
1204
- "data-record-label": r === Ce || void 0,
1205
- ...h.props(q.cell, Le[b], Re[t.role], t.width !== void 0 && q.width(t.width), t.isSecondary === !0 && q.secondary),
1206
- children: d !== void 0 && r === Ce ? /* @__PURE__ */ P(rt, {
1208
+ return /* @__PURE__ */ L("td", {
1209
+ "data-record-label": r === ye || void 0,
1210
+ ...g.props(J.cell, Ie[y], Le[t.role], t.width !== void 0 && J.width(t.width), t.isSecondary === !0 && J.secondary),
1211
+ children: d !== void 0 && r === ye ? /* @__PURE__ */ L(nt, {
1207
1212
  index: n,
1208
1213
  recordId: e.id,
1209
1214
  row: e.original,
@@ -1214,18 +1219,18 @@ function X({ rows: e, columns: t, getRowId: n, caption: r, empty: i, sort: a, on
1214
1219
  }, t.id);
1215
1220
  })]
1216
1221
  })] }, e.id)),
1217
- x !== void 0 && Pe > 0 && /* @__PURE__ */ P("tr", {
1222
+ b !== void 0 && Ne > 0 && /* @__PURE__ */ L("tr", {
1218
1223
  "aria-hidden": "true",
1219
- children: /* @__PURE__ */ P("td", {
1220
- colSpan: K,
1221
- ...h.props(q.spacer(Pe))
1224
+ children: /* @__PURE__ */ L("td", {
1225
+ colSpan: q,
1226
+ ...g.props(J.spacer(Ne))
1222
1227
  })
1223
1228
  }),
1224
- e.length === 0 && /* @__PURE__ */ P("tr", { children: /* @__PURE__ */ P("td", {
1225
- colSpan: K,
1226
- ...h.props(q.emptyCell),
1227
- children: /* @__PURE__ */ P("div", {
1228
- ...h.props(q.empty),
1229
+ e.length === 0 && /* @__PURE__ */ L("tr", { children: /* @__PURE__ */ L("td", {
1230
+ colSpan: q,
1231
+ ...g.props(J.emptyCell),
1232
+ children: /* @__PURE__ */ L("div", {
1233
+ ...g.props(J.empty),
1229
1234
  children: i
1230
1235
  })
1231
1236
  }) })
@@ -1233,54 +1238,54 @@ function X({ rows: e, columns: t, getRowId: n, caption: r, empty: i, sort: a, on
1233
1238
  })
1234
1239
  ] });
1235
1240
  }
1236
- let { api: Y, element: Je } = $e(De, (t) => ({
1241
+ let { api: X, element: qe } = Qe(we, (t) => ({
1237
1242
  "aria-label": r,
1238
- "aria-busy": ie === "pending" || void 0,
1239
- "aria-rowcount": x === void 0 ? void 0 : Math.max(1, e.length) + 1,
1240
- ...h.props(q.table, q.fixed, q.minimumWidth(je, Me)),
1241
- children: qe(t)
1243
+ "aria-busy": M === "pending" || void 0,
1244
+ "aria-rowcount": b === void 0 ? void 0 : Math.max(1, e.length) + 1,
1245
+ ...g.props(J.table, J.fixed, J.minimumWidth(Ae, je)),
1246
+ children: Ke(t)
1242
1247
  }));
1243
1248
  return E(() => {
1244
- if (m === void 0) {
1245
- R.current = void 0;
1249
+ if (h === void 0) {
1250
+ V.current = void 0;
1246
1251
  return;
1247
1252
  }
1248
- let e = z.indexOf(m);
1249
- if (R.current === m || e === -1) return;
1253
+ let e = U.indexOf(h);
1254
+ if (V.current === h || e === -1) return;
1250
1255
  let t = requestAnimationFrame(() => {
1251
- Y.focusRow(e) && (R.current = m);
1256
+ X.focusRow(e) && (V.current = h);
1252
1257
  });
1253
1258
  return () => cancelAnimationFrame(t);
1254
1259
  }, [
1255
- z,
1256
- m,
1257
- Te,
1258
- Y
1259
- ]), /* @__PURE__ */ F("div", {
1260
- ...h.props(q.frame, ze[we]),
1261
- children: [/* @__PURE__ */ F("div", {
1262
- ref: se.ref,
1260
+ U,
1261
+ h,
1262
+ G,
1263
+ X
1264
+ ]), /* @__PURE__ */ R("div", {
1265
+ ...g.props(J.frame, Re[be]),
1266
+ children: [/* @__PURE__ */ R("div", {
1267
+ ref: I.ref,
1263
1268
  "data-table-viewport": !0,
1264
1269
  role: "region",
1265
1270
  "aria-label": r,
1266
- tabIndex: se.tabIndex,
1267
- ...h.props(q.viewport, Be[we], typeof x?.height == "number" && q.virtual(x.height)),
1271
+ tabIndex: I.tabIndex,
1272
+ ...g.props(J.viewport, ze[be], typeof b?.height == "number" && J.virtual(b.height)),
1268
1273
  children: [
1269
- Je,
1270
- x !== void 0 && /* @__PURE__ */ P("div", {
1274
+ qe,
1275
+ b !== void 0 && /* @__PURE__ */ L("div", {
1271
1276
  "aria-hidden": !0,
1272
- ...h.props(q.sizer(pe + V.size))
1277
+ ...g.props(J.sizer(ue + K.size))
1273
1278
  }),
1274
- /* @__PURE__ */ P("div", {
1275
- ref: ue,
1276
- ...h.props(S !== void 0 && q.endContent),
1279
+ /* @__PURE__ */ L("div", {
1280
+ ref: se,
1281
+ ...g.props(S !== void 0 && J.endContent),
1277
1282
  children: S
1278
1283
  })
1279
1284
  ]
1280
- }), Ae && /* @__PURE__ */ F("div", {
1281
- ...h.props(q.footer),
1282
- children: [T, A !== void 0 && /* @__PURE__ */ P(ke, {
1283
- ...A,
1285
+ }), ke && /* @__PURE__ */ R("div", {
1286
+ ...g.props(J.footer),
1287
+ children: [T, j !== void 0 && /* @__PURE__ */ L(Oe, {
1288
+ ...j,
1284
1289
  label: r
1285
1290
  })]
1286
1291
  })]
@@ -1292,10 +1297,10 @@ function Z(e) {
1292
1297
  if (e.reason.trim().length === 0) throw Error("A table query exception requires a reason.");
1293
1298
  }
1294
1299
  function dt({ search: e, filters: t, children: n, isFiltered: r = !1 }) {
1295
- return e === void 0 ? /* @__PURE__ */ P(ut, {
1300
+ return e === void 0 ? /* @__PURE__ */ L(ut, {
1296
1301
  value: void 0,
1297
1302
  children: n
1298
- }) : (e !== !0 && Z(e), t !== !0 && Z(t), /* @__PURE__ */ P(ut, {
1303
+ }) : (e !== !0 && Z(e), t !== !0 && Z(t), /* @__PURE__ */ L(ut, {
1299
1304
  value: r,
1300
1305
  children: n
1301
1306
  }));
@@ -1401,48 +1406,48 @@ var Q = {
1401
1406
  "Delete"
1402
1407
  ]);
1403
1408
  function yt({ option: e }) {
1404
- return /* @__PURE__ */ P("span", {
1405
- ...h.props(Q.icon, _t[e.tone ?? "neutral"]),
1406
- children: e.icon ?? /* @__PURE__ */ P(me, {
1409
+ return /* @__PURE__ */ L("span", {
1410
+ ...g.props(Q.icon, _t[e.tone ?? "neutral"]),
1411
+ children: e.icon ?? /* @__PURE__ */ L(de, {
1407
1412
  size: 14,
1408
1413
  "aria-hidden": !0
1409
1414
  })
1410
1415
  });
1411
1416
  }
1412
1417
  function bt({ groups: e }) {
1413
- let [n, i] = k(""), a = e.filter((e) => e.label.toLowerCase().includes(n.toLowerCase())), o = e.length === 1 && e[0] !== void 0 ? `Filter by ${e[0].label.toLowerCase()}` : "Filters", s = De(/* @__PURE__ */ P(t, {
1418
+ let [n, i] = k(""), a = e.filter((e) => e.label.toLowerCase().includes(n.toLowerCase())), o = e.length === 1 && e[0] !== void 0 ? `Filter by ${e[0].label.toLowerCase()}` : "Filters", s = we(/* @__PURE__ */ L(t, {
1414
1419
  "aria-label": o,
1415
1420
  title: "Filters"
1416
1421
  }));
1417
- return /* @__PURE__ */ F(c.Root, {
1422
+ return /* @__PURE__ */ R(c.Root, {
1418
1423
  onOpenChange: (e) => {
1419
1424
  e || i("");
1420
1425
  },
1421
- children: [/* @__PURE__ */ P(c.Trigger, {
1426
+ children: [/* @__PURE__ */ L(c.Trigger, {
1422
1427
  render: s,
1423
- children: /* @__PURE__ */ P(I, {
1428
+ children: /* @__PURE__ */ L(z, {
1424
1429
  size: 14,
1425
1430
  "aria-hidden": !0
1426
1431
  })
1427
- }), /* @__PURE__ */ F(c.Popup, {
1432
+ }), /* @__PURE__ */ R(c.Popup, {
1428
1433
  align: "end",
1429
1434
  children: [
1430
- /* @__PURE__ */ P(xt, {
1435
+ /* @__PURE__ */ L(xt, {
1431
1436
  label: "Find a filter",
1432
1437
  value: n,
1433
1438
  onChange: i
1434
1439
  }),
1435
- a.map((e) => /* @__PURE__ */ P(St, { group: e }, e.id)),
1436
- a.length === 0 && /* @__PURE__ */ P("div", {
1440
+ a.map((e) => /* @__PURE__ */ L(St, { group: e }, e.id)),
1441
+ a.length === 0 && /* @__PURE__ */ L("div", {
1437
1442
  className: "x1hmw7ec x5g2kb4",
1438
- children: /* @__PURE__ */ P(r, { children: "No filters found" })
1443
+ children: /* @__PURE__ */ L(r, { children: "No filters found" })
1439
1444
  })
1440
1445
  ]
1441
1446
  })]
1442
1447
  });
1443
1448
  }
1444
1449
  function xt({ label: e, value: t, onChange: n }) {
1445
- return /* @__PURE__ */ P(m, {
1450
+ return /* @__PURE__ */ L(h, {
1446
1451
  type: "search",
1447
1452
  "aria-label": e,
1448
1453
  placeholder: "Filter…",
@@ -1457,51 +1462,51 @@ function xt({ label: e, value: t, onChange: n }) {
1457
1462
  }
1458
1463
  function St({ group: e }) {
1459
1464
  let [t, n] = k(""), i = e.options.filter((e) => e.label.toLowerCase().includes(t.toLowerCase()));
1460
- return /* @__PURE__ */ F(c.SubmenuRoot, {
1465
+ return /* @__PURE__ */ R(c.SubmenuRoot, {
1461
1466
  onOpenChange: (e) => {
1462
1467
  e || n("");
1463
1468
  },
1464
- children: [/* @__PURE__ */ F(c.SubmenuTrigger, { children: [
1465
- e.icon ?? /* @__PURE__ */ P(I, {
1469
+ children: [/* @__PURE__ */ R(c.SubmenuTrigger, { children: [
1470
+ e.icon ?? /* @__PURE__ */ L(z, {
1466
1471
  size: 14,
1467
1472
  "aria-hidden": !0
1468
1473
  }),
1469
- /* @__PURE__ */ P("span", {
1474
+ /* @__PURE__ */ L("span", {
1470
1475
  className: "x98rzlu xeuugli xj0a0fe",
1471
1476
  children: e.label
1472
1477
  }),
1473
- /* @__PURE__ */ P("span", {
1478
+ /* @__PURE__ */ L("span", {
1474
1479
  className: "xazcve0 xb3r6kr xuxw1ft xlyipyv x153jb6y xy8obcc xas2l8k",
1475
1480
  children: e.options.find((t) => t.value === e.value)?.label
1476
1481
  }),
1477
- /* @__PURE__ */ P(pe, {
1482
+ /* @__PURE__ */ L(ue, {
1478
1483
  size: 14,
1479
1484
  "aria-hidden": !0
1480
1485
  })
1481
- ] }), /* @__PURE__ */ F(c.Popup, {
1486
+ ] }), /* @__PURE__ */ R(c.Popup, {
1482
1487
  align: "start",
1483
1488
  "aria-label": e.label,
1484
1489
  children: [
1485
- /* @__PURE__ */ P(xt, {
1490
+ /* @__PURE__ */ L(xt, {
1486
1491
  label: `Find ${e.label.toLowerCase()}`,
1487
1492
  value: t,
1488
1493
  onChange: n
1489
1494
  }),
1490
- /* @__PURE__ */ P(c.RadioGroup, {
1495
+ /* @__PURE__ */ L(c.RadioGroup, {
1491
1496
  value: e.value,
1492
1497
  onValueChange: e.onChange,
1493
- children: i.map((e) => /* @__PURE__ */ F(c.RadioItem, {
1498
+ children: i.map((e) => /* @__PURE__ */ R(c.RadioItem, {
1494
1499
  value: e.value,
1495
1500
  closeOnSelect: !0,
1496
- children: [/* @__PURE__ */ P(yt, { option: e }), /* @__PURE__ */ P("span", {
1501
+ children: [/* @__PURE__ */ L(yt, { option: e }), /* @__PURE__ */ L("span", {
1497
1502
  className: "x98rzlu xeuugli xj0a0fe",
1498
1503
  children: e.label
1499
1504
  })]
1500
1505
  }, e.value))
1501
1506
  }),
1502
- i.length === 0 && /* @__PURE__ */ P("div", {
1507
+ i.length === 0 && /* @__PURE__ */ L("div", {
1503
1508
  className: "x1hmw7ec x5g2kb4",
1504
- children: /* @__PURE__ */ P(r, { children: "No options found" })
1509
+ children: /* @__PURE__ */ L(r, { children: "No options found" })
1505
1510
  })
1506
1511
  ]
1507
1512
  })]
@@ -1524,7 +1529,7 @@ function wt(e) {
1524
1529
  }
1525
1530
  throw Error("Select a listed filter option, or provide a filter ID and value.");
1526
1531
  }
1527
- var Tt = M({
1532
+ var Tt = P({
1528
1533
  name: "collection-query",
1529
1534
  options: {
1530
1535
  search: "value",
@@ -1540,13 +1545,13 @@ var Tt = M({
1540
1545
  let { search: t, isDisabled: n } = e();
1541
1546
  return n || t === void 0 ? null : (e) => {
1542
1547
  if (typeof e != "string") throw TypeError("The search term must be a string.");
1543
- N({ options: () => t }, "onChange", e, { reason: "imperative" });
1548
+ F({ options: () => t }, "onChange", e, { reason: "imperative" });
1544
1549
  };
1545
1550
  },
1546
1551
  get submitSearch() {
1547
1552
  let { search: t, isDisabled: n } = e();
1548
1553
  return n || t?.onSubmit === void 0 ? null : () => {
1549
- N({ options: () => t }, "onSubmit", t.value, { reason: "imperative" });
1554
+ F({ options: () => t }, "onSubmit", t.value, { reason: "imperative" });
1550
1555
  };
1551
1556
  },
1552
1557
  get setFilter() {
@@ -1554,7 +1559,7 @@ var Tt = M({
1554
1559
  return n || t.length === 0 ? null : (e, n) => {
1555
1560
  let [r, i] = n === void 0 ? wt(e) : [e, n], a = t.find((e) => e.id === r);
1556
1561
  if (a === void 0 || !a.options.some((e) => e.value === i)) throw Error("Unknown filter or option. Choose one of the listed filter options.");
1557
- N({ options: () => a }, "onChange", i, { reason: "imperative" });
1562
+ F({ options: () => a }, "onChange", i, { reason: "imperative" });
1558
1563
  };
1559
1564
  },
1560
1565
  items() {
@@ -1580,136 +1585,151 @@ var Tt = M({
1580
1585
  $$css: !0
1581
1586
  } };
1582
1587
  function Ot({ label: e = "Collection controls", search: n, filters: r = [], filterContent: i, chips: a = [], viewActions: o, display: s, isPlaceholder: c = !1, isReady: u }) {
1583
- let [d, f] = k(!1), [p, ee] = k(!1), te = O(null), h = O(null), g = O(null), _ = D(() => Object.fromEntries(r.map((e) => [e.id, e.value])), [r]), v = c || !u, y = n !== void 0 && (d || n.value.length > 0);
1588
+ let [d, f] = k(null), [p, m] = k(!1), [ee, g] = k(!1), te = O(null), _ = O(null), v = O(null), ne = D(() => Object.fromEntries(r.map((e) => [e.id, e.value])), [r]), y = c || !u, x = n !== void 0 && (p || n.value.length > 0);
1584
1589
  E(() => {
1585
- d && !c && u && (g.current?.focus(), g.current?.select());
1590
+ p && !c && u && (v.current?.focus(), v.current?.select());
1586
1591
  }, [
1587
- d,
1592
+ p,
1588
1593
  c,
1589
1594
  u
1590
1595
  ]);
1591
- function b() {
1592
- (te.current ?? h.current?.querySelector("button"))?.focus();
1596
+ function S() {
1597
+ (te.current ?? _.current?.querySelector("button"))?.focus();
1593
1598
  }
1594
- function ne() {
1595
- n !== void 0 && !c && u && (g.current?.focus(), g.current?.select(), f(!0));
1599
+ function C() {
1600
+ n !== void 0 && !c && u && (v.current?.focus(), v.current?.select(), m(!0));
1596
1601
  }
1597
- function S(e, t) {
1598
- n !== void 0 && N({ options: () => n }, "onChange", "", {
1602
+ function w(e, t) {
1603
+ n !== void 0 && F({ options: () => n }, "onChange", "", {
1599
1604
  reason: e,
1600
1605
  event: t
1601
- }), f(!1), b();
1606
+ }), m(!1), S();
1602
1607
  }
1603
- function C(e) {
1604
- y && !e.defaultPrevented && e.key === "Escape" && e.target instanceof Element && e.target.closest("[role=\"dialog\"], [role=\"alertdialog\"], [role=\"menu\"], [role=\"listbox\"], [data-native-find], input:not([data-view-find]), textarea, select") === null && (e.preventDefault(), e.stopPropagation(), S("escape-key", e.nativeEvent));
1608
+ function T(e) {
1609
+ x && !e.defaultPrevented && e.key === "Escape" && e.target instanceof Element && e.target.closest("[role=\"dialog\"], [role=\"alertdialog\"], [role=\"menu\"], [role=\"listbox\"], [data-native-find], input:not([data-view-find]), textarea, select") === null && (e.preventDefault(), e.stopPropagation(), w("escape-key", e.nativeEvent));
1605
1610
  }
1606
- let w = r.filter((e) => e.value !== e.defaultValue).map((e) => ({
1611
+ let A = {
1612
+ description: `Find in ${e}`,
1613
+ ...d !== null && { layer: d },
1614
+ when: () => {
1615
+ if (d === null) return !1;
1616
+ let e = d.ownerDocument.activeElement;
1617
+ return e === null || e.closest("[data-native-find], textarea, select, input:not([data-view-find]), [contenteditable=\"true\"], [role=\"dialog\"], [role=\"alertdialog\"], [role=\"menu\"], [role=\"listbox\"]") !== null ? !1 : e.closest("[data-table-query]") === d || e === d.ownerDocument.body && d.ownerDocument.querySelectorAll("[data-view-find-trigger]").length === 1;
1618
+ }
1619
+ }, j = d !== null && n !== void 0 && !y;
1620
+ V(j ? "/" : null, C, A), V(j ? "mod+f" : null, C, A);
1621
+ let M = r.filter((e) => e.value !== e.defaultValue).map((e) => ({
1607
1622
  id: `filter:${e.id}`,
1608
1623
  label: e.options.find((t) => t.value === e.value)?.label ?? e.value,
1609
1624
  onRemove: (t) => e.onChange(e.defaultValue, t)
1610
1625
  }));
1611
- for (let e of a) w.push({
1626
+ for (let e of a) M.push({
1612
1627
  ...e,
1613
1628
  id: `chip:${e.id}`
1614
1629
  });
1615
- let T = i !== void 0 || r.length > 0, re = x.toArray([o, s]).length > 0, A = n !== void 0 || T || re, ie = n?.label ?? "Search this view", ae = n?.placeholder ?? "Find in view…";
1616
- return {
1617
- openSearch: ne,
1618
- onKeyDown: C,
1619
- actions: A ? /* @__PURE__ */ F(U, {
1620
- "aria-label": e,
1621
- render: /* @__PURE__ */ P(Et, {
1622
- search: n,
1623
- groups: r,
1624
- selections: _,
1625
- isDisabled: v,
1626
- ref: h,
1627
- "aria-hidden": v,
1628
- inert: v,
1629
- className: "x78zum5 x6s0dn4 x1a02dak x13a6bvl x1hnptsi xeuugli x193iq5w"
1630
+ let re = i !== void 0 || r.length > 0, N = b.toArray([o, s]).length > 0, ie = n !== void 0 || re || N, P = n?.label ?? "Search this view", I = n?.placeholder ?? "Find in view…", ae = ie ? /* @__PURE__ */ R(Ce, {
1631
+ "aria-label": e,
1632
+ render: /* @__PURE__ */ L(Et, {
1633
+ search: n,
1634
+ groups: r,
1635
+ selections: ne,
1636
+ isDisabled: y,
1637
+ ref: _,
1638
+ "aria-hidden": y,
1639
+ inert: y,
1640
+ className: "x78zum5 x6s0dn4 x1a02dak x13a6bvl x1hnptsi xeuugli x193iq5w"
1641
+ }),
1642
+ children: [
1643
+ n !== void 0 && /* @__PURE__ */ L(U, {
1644
+ disabled: c,
1645
+ render: /* @__PURE__ */ L(t, {
1646
+ ref: te,
1647
+ type: "button",
1648
+ "aria-label": "Find in view",
1649
+ title: "Find in view",
1650
+ "data-view-find-trigger": !0,
1651
+ "aria-expanded": x,
1652
+ onClick: C
1653
+ }),
1654
+ children: /* @__PURE__ */ L(fe, {
1655
+ size: 14,
1656
+ "aria-hidden": !0
1657
+ })
1630
1658
  }),
1631
- children: [
1632
- n !== void 0 && /* @__PURE__ */ P(z, {
1659
+ x && /* @__PURE__ */ R("div", {
1660
+ className: "x78zum5 x6s0dn4 xunmzkg xdl07me x193iq5w",
1661
+ children: [/* @__PURE__ */ L(W, {
1633
1662
  disabled: c,
1634
- render: /* @__PURE__ */ P(t, {
1635
- ref: te,
1663
+ render: /* @__PURE__ */ L(h, {
1664
+ ref: v,
1665
+ type: "search",
1666
+ "data-view-find": !0,
1667
+ "aria-label": P,
1668
+ placeholder: I,
1669
+ value: n.value,
1670
+ onValueChange: n.onChange,
1671
+ onKeyDown: (e) => {
1672
+ e.key === "Enter" && n.onSubmit !== void 0 && (e.preventDefault(), F({ options: () => n }, "onSubmit", n.value, {
1673
+ reason: "enter-key",
1674
+ event: e.nativeEvent
1675
+ })), e.key === "Escape" && (e.preventDefault(), e.stopPropagation(), w("escape-key", e.nativeEvent));
1676
+ },
1677
+ xstyle: Dt.input
1678
+ })
1679
+ }), /* @__PURE__ */ L(U, {
1680
+ render: /* @__PURE__ */ L(t, {
1636
1681
  type: "button",
1637
- "aria-label": "Find in view",
1638
- title: "Find in view",
1639
- "data-view-find-trigger": !0,
1640
- "aria-expanded": y,
1641
- onClick: ne
1682
+ variant: "ghost",
1683
+ "data-view-find-close": !0,
1684
+ "aria-label": "Close search",
1685
+ title: "Close search (Esc)",
1686
+ onClick: (e) => w("clear-press", e.nativeEvent)
1642
1687
  }),
1643
- children: /* @__PURE__ */ P(he, {
1688
+ children: /* @__PURE__ */ L(B, {
1644
1689
  size: 14,
1645
1690
  "aria-hidden": !0
1646
1691
  })
1647
- }),
1648
- y && /* @__PURE__ */ F("div", {
1649
- className: "x78zum5 x6s0dn4 xunmzkg xdl07me x193iq5w",
1650
- children: [/* @__PURE__ */ P(B, {
1651
- disabled: c,
1652
- render: /* @__PURE__ */ P(m, {
1653
- ref: g,
1654
- type: "search",
1655
- "data-view-find": !0,
1656
- "aria-label": ie,
1657
- placeholder: ae,
1658
- value: n.value,
1659
- onValueChange: n.onChange,
1660
- onKeyDown: (e) => {
1661
- e.key === "Enter" && n.onSubmit !== void 0 && (e.preventDefault(), N({ options: () => n }, "onSubmit", n.value, {
1662
- reason: "enter-key",
1663
- event: e.nativeEvent
1664
- })), e.key === "Escape" && (e.preventDefault(), e.stopPropagation(), S("escape-key", e.nativeEvent));
1665
- },
1666
- xstyle: Dt.input
1667
- })
1668
- }), /* @__PURE__ */ P(z, {
1669
- render: /* @__PURE__ */ P(t, {
1670
- type: "button",
1671
- variant: "ghost",
1672
- "data-view-find-close": !0,
1673
- "aria-label": "Close search",
1674
- title: "Close search (Esc)",
1675
- onClick: (e) => S("clear-press", e.nativeEvent)
1676
- }),
1677
- children: /* @__PURE__ */ P(L, {
1678
- size: 14,
1679
- "aria-hidden": !0
1680
- })
1681
- })]
1682
- }),
1683
- i === void 0 ? r.length > 0 ? /* @__PURE__ */ P(bt, { groups: r }) : null : /* @__PURE__ */ F(l.Root, {
1684
- open: p,
1685
- onOpenChange: ee,
1686
- children: [/* @__PURE__ */ P(l.Trigger, {
1687
- render: /* @__PURE__ */ P(z, { render: /* @__PURE__ */ P(t, {
1688
- "aria-label": "Filters",
1689
- title: "Filters"
1690
- }) }),
1691
- children: /* @__PURE__ */ P(I, {
1692
- size: 14,
1693
- "aria-hidden": !0
1694
- })
1695
- }), /* @__PURE__ */ F(l.Popup, {
1696
- align: "end",
1697
- className: "x1m258z3 xw7nakj",
1698
- children: [/* @__PURE__ */ P(l.Title, { children: "Filters" }), i(() => ee(!1))]
1699
- })]
1700
- }),
1701
- o,
1702
- s
1703
- ]
1704
- }) : void 0,
1705
- chips: w.length > 0 && /* @__PURE__ */ P("div", {
1706
- "aria-hidden": v,
1707
- inert: v,
1692
+ })]
1693
+ }),
1694
+ i === void 0 ? r.length > 0 ? /* @__PURE__ */ L(bt, { groups: r }) : null : /* @__PURE__ */ R(l.Root, {
1695
+ open: ee,
1696
+ onOpenChange: g,
1697
+ children: [/* @__PURE__ */ L(l.Trigger, {
1698
+ render: /* @__PURE__ */ L(U, { render: /* @__PURE__ */ L(t, {
1699
+ "aria-label": "Filters",
1700
+ title: "Filters"
1701
+ }) }),
1702
+ children: /* @__PURE__ */ L(z, {
1703
+ size: 14,
1704
+ "aria-hidden": !0
1705
+ })
1706
+ }), /* @__PURE__ */ R(l.Popup, {
1707
+ align: "end",
1708
+ className: "x1m258z3 xw7nakj",
1709
+ children: [/* @__PURE__ */ L(l.Title, { children: "Filters" }), i(() => g(!1))]
1710
+ })]
1711
+ }),
1712
+ o,
1713
+ s
1714
+ ]
1715
+ }) : void 0;
1716
+ return {
1717
+ findRegion: {
1718
+ ref: f,
1719
+ "data-table-query": "",
1720
+ onKeyDown: T
1721
+ },
1722
+ openSearch: C,
1723
+ onKeyDown: T,
1724
+ actions: ae,
1725
+ chips: M.length > 0 && /* @__PURE__ */ L("div", {
1726
+ "aria-hidden": y,
1727
+ inert: y,
1708
1728
  className: "xjp7ctv",
1709
- children: /* @__PURE__ */ P(K, {
1710
- filters: w,
1729
+ children: /* @__PURE__ */ L(q, {
1730
+ filters: M,
1711
1731
  onRemove: (e, t) => {
1712
- b(), w.find((t) => t.id === e)?.onRemove(t);
1732
+ S(), M.find((t) => t.id === e)?.onRemove(t);
1713
1733
  }
1714
1734
  })
1715
1735
  })
@@ -1719,13 +1739,13 @@ function Ot({ label: e = "Collection controls", search: n, filters: r = [], filt
1719
1739
  function kt({ columns: e, rows: t = 3, hideCaption: n = !0, ...r }) {
1720
1740
  let i = typeof r.window?.height == "string" ? r.window.height : "content", a = Array.from({ length: t }, (e, t) => ({ id: String(t) })), o = e.map(({ placeholder: e, ...t }) => ({
1721
1741
  ...t,
1722
- cell: () => e ?? /* @__PURE__ */ P(d, { width: "60%" })
1742
+ cell: () => e ?? /* @__PURE__ */ L(d, { width: "60%" })
1723
1743
  }));
1724
- return /* @__PURE__ */ P("div", {
1744
+ return /* @__PURE__ */ L("div", {
1725
1745
  "aria-hidden": !0,
1726
1746
  inert: !0,
1727
- ...h.props(ze[i], q.placeholder),
1728
- children: /* @__PURE__ */ P(X, {
1747
+ ...g.props(Re[i], J.placeholder),
1748
+ children: /* @__PURE__ */ L(lt, {
1729
1749
  ...r,
1730
1750
  hideCaption: n,
1731
1751
  isPlaceholder: !0,
@@ -1740,31 +1760,31 @@ function At({ query: e, ...t }) {
1740
1760
  switch (e.mode) {
1741
1761
  case "local":
1742
1762
  if (t.onEndReached !== void 0 || t.pagination !== void 0) throw Error("Local table queries require all rows. Use a controlled or frame query for a paged source.");
1743
- return /* @__PURE__ */ P(Mt, {
1763
+ return /* @__PURE__ */ L(Mt, {
1744
1764
  query: e,
1745
1765
  table: t
1746
1766
  });
1747
- case "controlled": return /* @__PURE__ */ P(Nt, {
1767
+ case "controlled": return /* @__PURE__ */ L(Nt, {
1748
1768
  table: {
1749
1769
  ...t,
1750
1770
  filteredEmpty: t.filteredEmpty ?? t.empty
1751
1771
  },
1752
1772
  ...gt(e)
1753
1773
  });
1754
- case "frame": return /* @__PURE__ */ P(jt, { table: t });
1755
- case "static": return Z(e), /* @__PURE__ */ P(dt, { children: /* @__PURE__ */ P(X, { ...t }) });
1774
+ case "frame": return /* @__PURE__ */ L(jt, { table: t });
1775
+ case "static": return Z(e), /* @__PURE__ */ L(dt, { children: /* @__PURE__ */ L(lt, { ...t }) });
1756
1776
  }
1757
1777
  }
1758
1778
  function jt({ table: e }) {
1759
1779
  let t = ht();
1760
- return /* @__PURE__ */ P(dt, { children: /* @__PURE__ */ P(X, {
1780
+ return /* @__PURE__ */ L(dt, { children: /* @__PURE__ */ L(lt, {
1761
1781
  ...e,
1762
1782
  empty: t ? e.filteredEmpty ?? "No matching records." : e.empty
1763
1783
  }) });
1764
1784
  }
1765
1785
  function Mt({ query: e, table: t }) {
1766
1786
  let { rows: n, search: r, filters: i, isFiltered: a } = mt(t.rows, e);
1767
- return /* @__PURE__ */ P(Nt, {
1787
+ return /* @__PURE__ */ L(Nt, {
1768
1788
  table: {
1769
1789
  ...t,
1770
1790
  rows: n
@@ -1780,26 +1800,15 @@ function Nt({ table: e, search: t, filters: n, isFiltered: r }) {
1780
1800
  filters: n,
1781
1801
  isReady: !0,
1782
1802
  label: e.caption
1783
- }), a = O(null), o = {
1784
- description: `Find in ${e.caption}`,
1785
- layer: a,
1786
- when: () => {
1787
- let e = a.current;
1788
- if (e === null) return !1;
1789
- let t = e.ownerDocument.activeElement;
1790
- return t === null || t.closest("[data-native-find], textarea, select, input:not([data-view-find]), [contenteditable=\"true\"], [role=\"dialog\"], [role=\"alertdialog\"], [role=\"menu\"], [role=\"listbox\"]") !== null ? !1 : t.closest("[data-table-query]") === e || t === e.ownerDocument.body && e.ownerDocument.querySelectorAll("[data-view-find-trigger]").length === 1;
1791
- }
1792
- };
1793
- return R(t === void 0 ? null : "/", i.openSearch, o), R(t === void 0 ? null : "mod+f", i.openSearch, o), /* @__PURE__ */ P(dt, { children: /* @__PURE__ */ F("div", {
1794
- ref: a,
1795
- "data-table-query": !0,
1796
- onKeyDown: i.onKeyDown,
1797
- ...h.props(ze[typeof e.window?.height == "string" ? e.window.height : "content"]),
1798
- children: [(t !== void 0 || n.length > 0) && /* @__PURE__ */ P(G, {
1803
+ });
1804
+ return /* @__PURE__ */ L(dt, { children: /* @__PURE__ */ R("div", {
1805
+ ...i.findRegion,
1806
+ ...g.props(Re[typeof e.window?.height == "string" ? e.window.height : "content"]),
1807
+ children: [(t !== void 0 || n.length > 0) && /* @__PURE__ */ L(Ee, {
1799
1808
  label: `${e.caption} controls`,
1800
1809
  actions: i.actions,
1801
1810
  children: i.chips
1802
- }), /* @__PURE__ */ P(X, {
1811
+ }), /* @__PURE__ */ L(lt, {
1803
1812
  ...e,
1804
1813
  empty: r ? e.filteredEmpty ?? "No matching records." : e.empty
1805
1814
  })]
@@ -1808,28 +1817,28 @@ function Nt({ table: e, search: t, filters: n, isFiltered: r }) {
1808
1817
  // packages/collections/src/collection-scroll.tsx
1809
1818
  function Pt(t) {
1810
1819
  switch (t.status) {
1811
- case "loading": return /* @__PURE__ */ P(n, {
1820
+ case "loading": return /* @__PURE__ */ L(n, {
1812
1821
  role: "status",
1813
1822
  variant: "caption",
1814
1823
  tone: "muted",
1815
1824
  children: t.message ?? "Loading…"
1816
1825
  });
1817
- case "complete": return t.message === void 0 ? null : /* @__PURE__ */ P(n, {
1826
+ case "complete": return t.message === void 0 ? null : /* @__PURE__ */ L(n, {
1818
1827
  variant: "caption",
1819
1828
  tone: "muted",
1820
1829
  children: t.message
1821
1830
  });
1822
- case "ready": return /* @__PURE__ */ P(e, {
1831
+ case "ready": return /* @__PURE__ */ L(e, {
1823
1832
  onClick: t.onLoadMore,
1824
1833
  children: t.message ?? "Load more"
1825
1834
  });
1826
- case "error": return /* @__PURE__ */ F(i, {
1835
+ case "error": return /* @__PURE__ */ R(i, {
1827
1836
  role: "status",
1828
- children: [/* @__PURE__ */ P(n, {
1837
+ children: [/* @__PURE__ */ L(n, {
1829
1838
  variant: "caption",
1830
1839
  tone: "muted",
1831
1840
  children: t.message ?? "More records could not be loaded."
1832
- }), /* @__PURE__ */ P(e, {
1841
+ }), /* @__PURE__ */ L(e, {
1833
1842
  onClick: t.onLoadMore,
1834
1843
  children: "Retry"
1835
1844
  })]
@@ -1837,14 +1846,14 @@ function Pt(t) {
1837
1846
  }
1838
1847
  }
1839
1848
  function Ft({ children: e, endContent: t, onEndReached: n, shouldFill: r = !1, endPosition: i = "end", label: a = "Collection" }) {
1840
- let o = te(), s = o.viewport, c = O(null);
1841
- it({
1849
+ let o = ee(), s = o.viewport, c = O(null);
1850
+ rt({
1842
1851
  end: c,
1843
1852
  viewport: r ? s : void 0,
1844
1853
  onEndReached: n,
1845
1854
  content: e
1846
1855
  });
1847
- let l = /* @__PURE__ */ P("div", {
1856
+ let l = /* @__PURE__ */ L("div", {
1848
1857
  ref: c,
1849
1858
  ...{
1850
1859
  0: {},
@@ -1852,7 +1861,7 @@ function Ft({ children: e, endContent: t, onEndReached: n, shouldFill: r = !1, e
1852
1861
  }[t !== void 0 | 0],
1853
1862
  children: t
1854
1863
  });
1855
- return /* @__PURE__ */ F("div", {
1864
+ return /* @__PURE__ */ R("div", {
1856
1865
  ref: o.ref,
1857
1866
  role: r ? "region" : void 0,
1858
1867
  "aria-label": r ? a : void 0,
@@ -1873,7 +1882,7 @@ var It = 860, Lt = S(void 0);
1873
1882
  function Rt({ reading: e }) {
1874
1883
  return { value: e };
1875
1884
  }
1876
- var zt = M({
1885
+ var zt = P({
1877
1886
  name: "detail-field",
1878
1887
  options: { reading: "string" },
1879
1888
  state: Rt,
@@ -1897,12 +1906,12 @@ function Vt({ master: t, detail: n, label: r, masterLabel: i, revealKey: a, retu
1897
1906
  behavior: "instant"
1898
1907
  });
1899
1908
  }
1900
- return /* @__PURE__ */ P("div", {
1909
+ return /* @__PURE__ */ L("div", {
1901
1910
  ...v({ className: "x9vvk8s x12h1iku xeuugli xbixft x1hz01jw xtqrqnz x1778rvt" }, s),
1902
- children: /* @__PURE__ */ F("div", {
1911
+ children: /* @__PURE__ */ R("div", {
1903
1912
  ref: l,
1904
1913
  className: "xrvj5dj x4ruv2j x1y7acmc x7a106z x1j825kq xeuugli",
1905
- children: [/* @__PURE__ */ P("div", {
1914
+ children: [/* @__PURE__ */ L("div", {
1906
1915
  ref: u,
1907
1916
  role: "group",
1908
1917
  "aria-label": i,
@@ -1910,20 +1919,20 @@ function Vt({ master: t, detail: n, label: r, masterLabel: i, revealKey: a, retu
1910
1919
  tabIndex: -1,
1911
1920
  className: "xeuugli",
1912
1921
  children: t
1913
- }), /* @__PURE__ */ F("aside", {
1922
+ }), /* @__PURE__ */ R("aside", {
1914
1923
  ref: d,
1915
1924
  id: c,
1916
1925
  "aria-label": r,
1917
1926
  tabIndex: -1,
1918
1927
  className: "x7wzq59 x7cfggw xqfmuo8 xeuugli x1sbza1b xhuqrux xexx8yu xdz7uhd xpilrb4 xdctr63 x1t7ytsu x97x49r x972fbf x1mg79u0 x13fuv20 xhjagg4 x14ijc3v x13qnu6 x9v5kkp x19rmrnh x12ijfkc",
1919
- children: [/* @__PURE__ */ P("div", {
1928
+ children: [/* @__PURE__ */ L("div", {
1920
1929
  className: "x1s85apg x1yamub6 x1xxlxpq",
1921
- children: /* @__PURE__ */ F(e, {
1930
+ children: /* @__PURE__ */ R(e, {
1922
1931
  variant: "ghost",
1923
1932
  onClick: f,
1924
1933
  children: ["Back to ", i.toLowerCase()]
1925
1934
  })
1926
- }), /* @__PURE__ */ P(Lt.Provider, {
1935
+ }), /* @__PURE__ */ L(Lt.Provider, {
1927
1936
  value: r,
1928
1937
  children: n
1929
1938
  })]
@@ -1933,26 +1942,26 @@ function Vt({ master: t, detail: n, label: r, masterLabel: i, revealKey: a, retu
1933
1942
  }
1934
1943
  function Ht({ value: e, label: t }) {
1935
1944
  let n = typeof e == "number" ? String(e) : e;
1936
- return typeof n == "string" ? /* @__PURE__ */ P(Bt, {
1945
+ return typeof n == "string" ? /* @__PURE__ */ L(Bt, {
1937
1946
  "aria-label": t,
1938
1947
  reading: n,
1939
1948
  className: "xeuugli x1ghz6dp xbixft xj0a0fe xss6m8b",
1940
1949
  children: n
1941
- }) : /* @__PURE__ */ P("dd", {
1950
+ }) : /* @__PURE__ */ L("dd", {
1942
1951
  className: "xeuugli x1ghz6dp xbixft xj0a0fe xss6m8b",
1943
1952
  children: e
1944
1953
  });
1945
1954
  }
1946
1955
  function Ut({ items: e, ...t }) {
1947
1956
  let n = C(Lt), r = t["aria-label"] ?? n;
1948
- return /* @__PURE__ */ P("dl", {
1957
+ return /* @__PURE__ */ L("dl", {
1949
1958
  ...v({ className: "x1ghz6dp xrvj5dj xezdspq x1i3977y xuytk5h x1hz01jw xvmahel xtqrqnz x1778rvt" }, t),
1950
- children: e.map(({ label: e, value: t }) => /* @__PURE__ */ F("div", {
1959
+ children: e.map(({ label: e, value: t }) => /* @__PURE__ */ R("div", {
1951
1960
  className: "xjp7ctv",
1952
- children: [/* @__PURE__ */ P("dt", {
1961
+ children: [/* @__PURE__ */ L("dt", {
1953
1962
  className: "xeuugli x153jb6y xj0a0fe",
1954
1963
  children: e
1955
- }), /* @__PURE__ */ P(Ht, {
1964
+ }), /* @__PURE__ */ L(Ht, {
1956
1965
  value: t,
1957
1966
  label: r === void 0 ? e : `${r} · ${e}`
1958
1967
  })]
@@ -1961,12 +1970,12 @@ function Ut({ items: e, ...t }) {
1961
1970
  }
1962
1971
  // packages/collections/src/list-footer.tsx
1963
1972
  function Wt({ children: e, actions: t, ...n }) {
1964
- return /* @__PURE__ */ F("div", {
1973
+ return /* @__PURE__ */ R("div", {
1965
1974
  ...v({ className: "x78zum5 x6s0dn4 x1qughib x1a02dak xeuugli x1n8ia3y x1qokhjc x1m92p3w x178xt8z x13fuv20 xhjagg4 x153jb6y x1hz01jw xvmahel xtqrqnz x1778rvt" }, n),
1966
- children: [/* @__PURE__ */ P("div", {
1975
+ children: [/* @__PURE__ */ L("div", {
1967
1976
  className: "xeuugli xj0a0fe",
1968
1977
  children: e
1969
- }), t != null && /* @__PURE__ */ P("div", {
1978
+ }), t != null && /* @__PURE__ */ L("div", {
1970
1979
  className: "x78zum5 x6s0dn4 x1a02dak x1hnptsi xeuugli",
1971
1980
  children: t
1972
1981
  })]
@@ -2118,36 +2127,36 @@ var $ = {
2118
2127
  columns: $.columns
2119
2128
  };
2120
2129
  function qt({ layout: e = "inline", ...t }) {
2121
- return /* @__PURE__ */ P("dl", { ...v(h.props(Kt[e]), t) });
2130
+ return /* @__PURE__ */ L("dl", { ...v(g.props(Kt[e]), t) });
2122
2131
  }
2123
2132
  function Jt({ label: e, value: t, detail: n, change: r, target: i, isLoading: a = !1, hasDetail: o = !1, variant: s = "inline", trend: c, ...l }) {
2124
2133
  let u = Gt[s], f = a && o || n !== void 0, p = r?.tone === "positive" ? $.changePositive : r?.tone === "negative" ? $.changeNegative : void 0;
2125
- return /* @__PURE__ */ F("div", {
2126
- ...v(h.props($.metric, u.metric), l),
2134
+ return /* @__PURE__ */ R("div", {
2135
+ ...v(g.props($.metric, u.metric), l),
2127
2136
  children: [
2128
- /* @__PURE__ */ P("dt", {
2129
- ...h.props($.label, u.label),
2137
+ /* @__PURE__ */ L("dt", {
2138
+ ...g.props($.label, u.label),
2130
2139
  children: e
2131
2140
  }),
2132
- /* @__PURE__ */ P("dd", {
2133
- ...h.props($.value, u.value),
2134
- children: /* @__PURE__ */ F("span", {
2141
+ /* @__PURE__ */ L("dd", {
2142
+ ...g.props($.value, u.value),
2143
+ children: /* @__PURE__ */ R("span", {
2135
2144
  className: "x78zum5 x1pha0wt x1a02dak x1hnptsi xeuugli",
2136
- children: [/* @__PURE__ */ P("span", { children: a ? /* @__PURE__ */ P(d, { width: u.valueWidth }) : t ?? "—" }), !a && r !== void 0 && /* @__PURE__ */ P("span", {
2137
- ...h.props($.change, p),
2145
+ children: [/* @__PURE__ */ L("span", { children: a ? /* @__PURE__ */ L(d, { width: u.valueWidth }) : t ?? "—" }), !a && r !== void 0 && /* @__PURE__ */ L("span", {
2146
+ ...g.props($.change, p),
2138
2147
  children: r.value
2139
2148
  })]
2140
2149
  })
2141
2150
  }),
2142
- f && /* @__PURE__ */ P("dd", {
2143
- ...h.props($.detail, u.detail),
2144
- children: a ? /* @__PURE__ */ P(d, { width: "24ch" }) : n
2151
+ f && /* @__PURE__ */ L("dd", {
2152
+ ...g.props($.detail, u.detail),
2153
+ children: a ? /* @__PURE__ */ L(d, { width: "24ch" }) : n
2145
2154
  }),
2146
- !a && i !== void 0 && /* @__PURE__ */ P("dd", {
2155
+ !a && i !== void 0 && /* @__PURE__ */ L("dd", {
2147
2156
  className: "x1ghz6dp xeuugli xy8obcc xas2l8k x153jb6y xss6m8b",
2148
2157
  children: i
2149
2158
  }),
2150
- c !== void 0 && /* @__PURE__ */ P("dd", {
2159
+ c !== void 0 && /* @__PURE__ */ L("dd", {
2151
2160
  className: "x1ghz6dp xeuugli xh8yej3 xkh2ocl",
2152
2161
  children: c
2153
2162
  })
@@ -2156,66 +2165,66 @@ function Jt({ label: e, value: t, detail: n, change: r, target: i, isLoading: a
2156
2165
  }
2157
2166
  // packages/collections/src/timestamp.tsx
2158
2167
  function Yt({ dateTime: e, label: t, title: n }) {
2159
- return n === void 0 ? /* @__PURE__ */ P("time", {
2168
+ return n === void 0 ? /* @__PURE__ */ L("time", {
2160
2169
  dateTime: e,
2161
2170
  className: "x1hz01jw xy8obcc xas2l8k x153jb6y xss6m8b xj0a0fe x13qnu6 x9v5kkp x19rmrnh x7s97pk",
2162
2171
  children: t
2163
- }) : /* @__PURE__ */ F(u.Root, { children: [/* @__PURE__ */ P(u.Trigger, {
2164
- render: /* @__PURE__ */ P("time", {
2172
+ }) : /* @__PURE__ */ R(u.Root, { children: [/* @__PURE__ */ L(u.Trigger, {
2173
+ render: /* @__PURE__ */ L("time", {
2165
2174
  dateTime: e,
2166
2175
  tabIndex: 0,
2167
2176
  "aria-label": n,
2168
2177
  className: "x1hz01jw xy8obcc xas2l8k x153jb6y xss6m8b xj0a0fe x13qnu6 x9v5kkp x19rmrnh x7s97pk"
2169
2178
  }),
2170
2179
  children: t
2171
- }), /* @__PURE__ */ P(u.Popup, { children: n })] });
2180
+ }), /* @__PURE__ */ L(u.Popup, { children: n })] });
2172
2181
  }
2173
2182
  // packages/collections/src/timeline.tsx
2174
2183
  function Xt({ label: e, children: t }) {
2175
- return /* @__PURE__ */ P(Se, {
2184
+ return /* @__PURE__ */ L(ve, {
2176
2185
  "aria-label": e,
2177
- render: /* @__PURE__ */ P("ol", {}),
2186
+ render: /* @__PURE__ */ L("ol", {}),
2178
2187
  className: "xe8uvvx x1ghz6dp x1717udv xeuugli",
2179
2188
  children: t
2180
2189
  });
2181
2190
  }
2182
2191
  function Zt({ icon: e, title: t, time: n, metadata: r, children: i, details: a, defaultOpen: s = !1 }) {
2183
- let [c, l] = k(s), u = /* @__PURE__ */ F("div", {
2192
+ let [c, l] = k(s), u = /* @__PURE__ */ R("div", {
2184
2193
  className: "x78zum5 x1pha0wt x1hnptsi x1a02dak xeuugli",
2185
- children: [/* @__PURE__ */ P(Ee, {
2194
+ children: [/* @__PURE__ */ L(xe, {
2186
2195
  className: "xeuugli xk4h15q xj0a0fe",
2187
- children: a === void 0 ? t : /* @__PURE__ */ P(o.Trigger, {
2196
+ children: a === void 0 ? t : /* @__PURE__ */ L(o.Trigger, {
2188
2197
  className: "x14atkfc x16exltd x17oiadl xt970qd xlqzeqv",
2189
2198
  children: t
2190
2199
  })
2191
- }), n != null && /* @__PURE__ */ P(V, {
2192
- render: /* @__PURE__ */ P("div", {}),
2200
+ }), n != null && /* @__PURE__ */ L(K, {
2201
+ render: /* @__PURE__ */ L("div", {}),
2193
2202
  className: "xeuugli x153jb6y xy8obcc xas2l8k xss6m8b xj0a0fe",
2194
2203
  children: n
2195
2204
  })]
2196
- }), d = /* @__PURE__ */ F(ce, { children: [
2205
+ }), d = /* @__PURE__ */ R(ae, { children: [
2197
2206
  u,
2198
- i != null && (!c || a === void 0) && /* @__PURE__ */ P(Ce, {
2207
+ i != null && (!c || a === void 0) && /* @__PURE__ */ L(ye, {
2199
2208
  className: "xeuugli x1ewvobj xj0a0fe",
2200
2209
  children: i
2201
2210
  }),
2202
- r != null && /* @__PURE__ */ P("div", {
2211
+ r != null && /* @__PURE__ */ L("div", {
2203
2212
  className: "xeuugli x153jb6y xy8obcc xas2l8k xj0a0fe",
2204
2213
  children: r
2205
2214
  }),
2206
- a !== void 0 && /* @__PURE__ */ P(o.Panel, { children: a })
2215
+ a !== void 0 && /* @__PURE__ */ L(o.Panel, { children: a })
2207
2216
  ] });
2208
- return /* @__PURE__ */ F(we, {
2209
- render: /* @__PURE__ */ P("li", {}),
2217
+ return /* @__PURE__ */ R(be, {
2218
+ render: /* @__PURE__ */ L("li", {}),
2210
2219
  className: "x1n2onr6 xrvj5dj x1eqwfih x1y1mm1b xhlx3wy xeuugli x1hz01jw xvmahel xtqrqnz x1778rvt xbixft x1cpjm7i x1hmns74 x1lk18uv x1gi6gvw x1jw5pjq x1vgi0k x1mi36wk x1wse844 xup0pd7 x1t137rt x13qnu6 x9v5kkp x19rmrnh x7s97pk",
2211
- children: [/* @__PURE__ */ P(Te, {
2212
- render: /* @__PURE__ */ P("span", {}),
2220
+ children: [/* @__PURE__ */ L(G, {
2221
+ render: /* @__PURE__ */ L("span", {}),
2213
2222
  className: "x78zum5 x6s0dn4 xl56j7k x1b1e0sl x153jb6y",
2214
2223
  children: e
2215
- }), a === void 0 ? /* @__PURE__ */ P("div", {
2224
+ }), a === void 0 ? /* @__PURE__ */ L("div", {
2216
2225
  className: "xrvj5dj x1hnptsi xeuugli",
2217
2226
  children: d
2218
- }) : /* @__PURE__ */ P(o.Root, {
2227
+ }) : /* @__PURE__ */ L(o.Root, {
2219
2228
  open: c,
2220
2229
  onOpenChange: l,
2221
2230
  className: "xrvj5dj x1hnptsi xeuugli xh8yej3",
@@ -2227,4 +2236,4 @@ var Qt = {
2227
2236
  Root: Xt,
2228
2237
  Item: Zt
2229
2238
  };
2230
- export { Pe as _, Wt as a, Oe as b, Pt as c, kt as d, Ot as f, Ne as g, mt as h, qt as i, Ft as l, dt as m, Yt as n, Ut as o, bt as p, Jt as r, Vt as s, Qt as t, At as u, ke as v, K as x, G as y };
2239
+ export { Ne as _, Wt as a, De as b, Pt as c, kt as d, Ot as f, Me as g, mt as h, qt as i, Ft as l, dt as m, Yt as n, Ut as o, bt as p, Jt as r, Vt as s, Qt as t, At as u, Oe as v, q as x, Ee as y };