@mechane-ai/elements 0.13.0 → 0.14.1

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 (83) hide show
  1. package/README.md +36 -12
  2. package/dist/ai.js +19 -19
  3. package/dist/{categorical-values-DwobbjBq.js → categorical-values-l5YTG9G3.js} +3 -3
  4. package/dist/{chart-frame-DAxsgMyl.js → chart-frame-Bf1l_7-R.js} +6 -6
  5. package/dist/{chart-input-B0snxbMH.js → chart-input-fBuRm0Lc.js} +3 -3
  6. package/dist/charts/cartesian.js +16 -16
  7. package/dist/charts/distribution.js +6 -6
  8. package/dist/charts/graph.js +5 -5
  9. package/dist/charts/hierarchy.js +3 -3
  10. package/dist/charts/matrix.js +13 -13
  11. package/dist/charts/timeline.js +30 -30
  12. package/dist/charts.js +1 -1
  13. package/dist/{code-block-VwrOHz5j.js → code-block-DB42-a0M.js} +4 -4
  14. package/dist/collections.js +330 -394
  15. package/dist/constants.stylex-bbdiv1fD.js +83 -0
  16. package/dist/content/code.js +1 -1
  17. package/dist/content/diff.js +5 -5
  18. package/dist/content/link.js +1 -1
  19. package/dist/content/markdown.js +4 -4
  20. package/dist/content/tree.js +2 -2
  21. package/dist/{content-link-Oj-MtNYi.js → content-link-rdxJ94P8.js} +1 -1
  22. package/dist/content.js +5 -5
  23. package/dist/elements.css +73 -106
  24. package/dist/feedback.js +1 -1
  25. package/dist/forms/dates.js +21 -21
  26. package/dist/forms.js +1 -1
  27. package/dist/index.js +1 -1
  28. package/dist/layout.js +22 -22
  29. package/dist/navigation/commands.js +6 -6
  30. package/dist/navigation.js +7 -7
  31. package/dist/overlays.js +1 -1
  32. package/dist/packages/ai/src/approval.d.ts +1 -1
  33. package/dist/packages/ai/src/conversation.d.ts +4 -4
  34. package/dist/packages/ai/src/prompt-input.d.ts +7 -7
  35. package/dist/packages/charts/src/cartesian/time-series-data.d.ts +1 -1
  36. package/dist/packages/charts/src/cartesian/time-series.d.ts +2 -2
  37. package/dist/packages/charts/src/chart-frame.d.ts +2 -2
  38. package/dist/packages/collections/src/collection-controls.d.ts +8 -7
  39. package/dist/packages/collections/src/collection-scroll.d.ts +2 -2
  40. package/dist/packages/collections/src/data-table.d.ts +6 -6
  41. package/dist/packages/collections/src/index.d.ts +2 -3
  42. package/dist/packages/content/src/code/code-block.d.ts +4 -4
  43. package/dist/packages/content/src/diff/diff-source.d.ts +1 -1
  44. package/dist/packages/content/src/diff/pierre-diff.d.ts +2 -2
  45. package/dist/packages/content/src/markdown/markdown.d.ts +2 -2
  46. package/dist/packages/content/src/trace.d.ts +3 -3
  47. package/dist/packages/core/src/actions.d.ts +2 -2
  48. package/dist/packages/core/src/surfaces.d.ts +6 -6
  49. package/dist/packages/core/src/text.d.ts +2 -2
  50. package/dist/packages/feedback/src/async-region.d.ts +5 -3
  51. package/dist/packages/feedback/src/control-placeholders.d.ts +5 -5
  52. package/dist/packages/feedback/src/feedback.d.ts +2 -2
  53. package/dist/packages/forms/src/form-actions.d.ts +2 -2
  54. package/dist/packages/forms/src/forms.d.ts +2 -2
  55. package/dist/packages/forms/src/selection-styles.d.ts +1 -1
  56. package/dist/packages/foundations/src/constants.stylex.d.ts +90 -0
  57. package/dist/packages/foundations/src/tokens.d.ts +2 -0
  58. package/dist/packages/foundations/src/tokens.stylex.d.ts +0 -90
  59. package/dist/packages/layout/src/app-shell.d.ts +2 -2
  60. package/dist/packages/layout/src/page-toolbar.d.ts +3 -3
  61. package/dist/packages/layout/src/record-page.d.ts +2 -2
  62. package/dist/packages/layout/src/resizable.d.ts +2 -2
  63. package/dist/packages/layout/src/sidebar.d.ts +6 -6
  64. package/dist/packages/layout/src/view-stack.d.ts +2 -2
  65. package/dist/packages/layout/src/workbench.d.ts +2 -2
  66. package/dist/packages/navigation/src/commands/command.d.ts +3 -3
  67. package/dist/packages/navigation/src/page-navigation.d.ts +4 -4
  68. package/dist/packages/overlays/src/drawer.d.ts +2 -2
  69. package/dist/{pierre-diff-sUAU-xeL.js → pierre-diff-C_j0nxwS.js} +2 -2
  70. package/dist/pierre-theme-BUeJim8s.js +127 -0
  71. package/dist/{pierre-tree-Db1yaDM2.js → pierre-tree-BaIVTNmG.js} +4 -4
  72. package/dist/{src-B0UTwpOz.js → src-BVsyKLQ8.js} +42 -41
  73. package/dist/{src-BNlyCwOr.js → src-BXh4g2VY.js} +36 -35
  74. package/dist/{src-DMsnWyru.js → src-R0kgHFPZ.js} +28 -28
  75. package/dist/{src-CVlgjAlw.js → src-d7EAi61b.js} +9 -9
  76. package/dist/theme.js +1 -1
  77. package/dist/tokens.js +3 -207
  78. package/dist/tokens.stylex-DTHHFbyl.js +128 -0
  79. package/package.json +4 -2
  80. package/packages/foundations/src/constants.stylex.ts +91 -0
  81. package/packages/foundations/src/tokens.stylex.ts +0 -90
  82. package/dist/packages/collections/src/table.d.ts +0 -17
  83. package/dist/pierre-theme-CBAncKdH.js +0 -126
@@ -1,50 +1,50 @@
1
- import { C as e, c as t, f as n, g as r, w as i } from "./src-BNlyCwOr.js";
2
- import { r as a } from "./src-DMsnWyru.js";
3
- import { r as o, t as s } from "./src-CVlgjAlw.js";
4
- import { d as c } from "./src-B0UTwpOz.js";
1
+ import { C as e, c as t, f as n, g as r, w as i } from "./src-BXh4g2VY.js";
2
+ import { r as a } from "./src-R0kgHFPZ.js";
3
+ import { r as o, t as s } from "./src-d7EAi61b.js";
4
+ import { d as c } from "./src-BVsyKLQ8.js";
5
5
  import { t as l } from "./accessibility-C-aIZ1Yx.js";
6
- import { tableGeometry as u } from "./tokens.js";
7
- import { mergeProps as d } from "@base-ui/react/merge-props";
8
- import * as f from "@stylexjs/stylex";
9
- import { Children as p, Fragment as ee, useEffect as m, useLayoutEffect as h, useMemo as te, useRef as g, useState as _ } from "react";
10
- import { Fragment as v, jsx as y, jsxs as b } from "react/jsx-runtime";
11
- import { ArrowDown as ne, ArrowUp as re, ArrowUpDown as ie, ChevronLeft as x, ChevronRight as S, Columns3 as C, X as w } from "lucide-react";
12
- import { createColumnHelper as ae, tableFeatures as T, useTable as oe } from "@tanstack/react-table";
13
- import { defaultRangeExtractor as se, useVirtualizer as ce } from "@tanstack/react-virtual";
6
+ import { l as u, t as d } from "./constants.stylex-bbdiv1fD.js";
7
+ import { mergeProps as f } from "@base-ui/react/merge-props";
8
+ import * as p from "@stylexjs/stylex";
9
+ import { Children as m, Fragment as ee, useEffect as h, useLayoutEffect as g, useMemo as te, useRef as _, useState as v, useSyncExternalStore as ne } from "react";
10
+ import { Fragment as y, jsx as b, jsxs as x } from "react/jsx-runtime";
11
+ import { ArrowDown as re, ArrowUp as ie, ArrowUpDown as ae, ChevronLeft as S, ChevronRight as C, Settings2 as w, X as T } from "lucide-react";
12
+ import { createColumnHelper as oe, tableFeatures as E, useTable as se } from "@tanstack/react-table";
13
+ import { defaultRangeExtractor as ce, useVirtualizer as le } from "@tanstack/react-virtual";
14
14
  // packages/collections/src/collection-controls.tsx
15
- var E = { remove: {
15
+ var D = { remove: {
16
16
  kmuXW: "x2lah0s",
17
17
  $$css: !0
18
18
  } };
19
- function D({ label: e, children: t, actions: n }) {
20
- let r = p.toArray(t).length > 0, i = p.toArray(n).length > 0;
21
- return !r && !i ? null : /* @__PURE__ */ b("div", {
19
+ function O({ label: e, children: t, actions: n }) {
20
+ let r = m.toArray(t).length > 0, i = m.toArray(n).length > 0;
21
+ return !r && !i ? null : /* @__PURE__ */ x("div", {
22
22
  role: "group",
23
23
  "aria-label": e,
24
- className: "x9f619 x78zum5 x6s0dn4 x1a02dak xeuugli x1oec0jp x1hnptsi x1dc62k6 xmpbh3m xp0u5rt xso031l x1q0q8m5 x1qndepd xbixft x1hz01jw xtqrqnz x1778rvt xjl7jj",
25
- children: [t, i && /* @__PURE__ */ y("div", {
24
+ className: "x9f619 x78zum5 x6s0dn4 x1a02dak xeuugli x1oec0jp x1hnptsi x1dc62k6 xmpbh3m xc06uyd xso031l x1q0q8m5 x1qndepd xbixft x1hz01jw xtqrqnz x1778rvt xjl7jj",
25
+ children: [t, i && /* @__PURE__ */ b("div", {
26
26
  className: "x78zum5 x6s0dn4 x1a02dak x1hnptsi xeuugli xvc5jky",
27
27
  children: n
28
28
  })]
29
29
  });
30
30
  }
31
- function O({ filters: e, onRemove: t, label: n = "Applied filters" }) {
32
- return e.length === 0 ? null : /* @__PURE__ */ y("div", {
31
+ function k({ filters: e, onRemove: t, label: n = "Applied filters" }) {
32
+ return e.length === 0 ? null : /* @__PURE__ */ b("div", {
33
33
  role: "group",
34
34
  "aria-label": n,
35
35
  className: "x78zum5 x6s0dn4 x1a02dak x1hnptsi xeuugli",
36
- children: e.map((e) => /* @__PURE__ */ b("span", {
37
- className: "x1n2onr6 x9f619 x3nfvp2 x6s0dn4 xunmzkg x1f9pz31 x17kqdoe xyibt8p x1ok0vyi xeuugli x193iq5w xpvm0e4 xbixft x1hz01jw xtqrqnz x1778rvt x1s928wv x1j6awrg xarstr8 x5hscyn x86avzo x10z0kkz x1k48kgn x2q1x1w",
38
- children: [/* @__PURE__ */ y("span", {
36
+ children: e.map((e) => /* @__PURE__ */ x("span", {
37
+ 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",
38
+ children: [/* @__PURE__ */ b("span", {
39
39
  title: e.label,
40
40
  className: "xeuugli xb3r6kr xlyipyv xuxw1ft",
41
41
  children: e.label
42
- }), /* @__PURE__ */ y(i, {
42
+ }), /* @__PURE__ */ b(i, {
43
43
  "aria-label": `Remove ${e.label}`,
44
44
  variant: "ghost",
45
45
  onClick: () => t(e.id),
46
- xstyle: E.remove,
47
- children: /* @__PURE__ */ y(w, {
46
+ xstyle: D.remove,
47
+ children: /* @__PURE__ */ b(T, {
48
48
  size: 14,
49
49
  "aria-hidden": "true"
50
50
  })
@@ -52,51 +52,56 @@ function O({ filters: e, onRemove: t, label: n = "Applied filters" }) {
52
52
  }, e.id))
53
53
  });
54
54
  }
55
- function k({ columns: t, onVisibilityChange: n, label: r = "Columns" }) {
56
- return /* @__PURE__ */ b(o.Root, { children: [/* @__PURE__ */ b(o.Trigger, {
57
- render: /* @__PURE__ */ y(e, { variant: "outline" }),
58
- children: [/* @__PURE__ */ y(C, {
59
- size: 16,
55
+ function A({ options: t, onChange: n, onReset: r, label: s = "Display options" }) {
56
+ return /* @__PURE__ */ x(o.Root, { children: [/* @__PURE__ */ b(o.Trigger, {
57
+ render: /* @__PURE__ */ b(i, {
58
+ "aria-label": s,
59
+ title: s
60
+ }),
61
+ children: /* @__PURE__ */ b(w, {
62
+ size: 14,
60
63
  "aria-hidden": "true"
61
- }), r]
62
- }), /* @__PURE__ */ y(o.Portal, { children: /* @__PURE__ */ y(o.Positioner, {
63
- align: "end",
64
- children: /* @__PURE__ */ y(o.Popup, {
65
- "aria-label": r,
66
- children: /* @__PURE__ */ y("div", {
67
- className: "xrvj5dj x1n8ia3y xfb3i0g",
68
- children: t.map((e) => /* @__PURE__ */ b("label", {
69
- className: "x78zum5 x6s0dn4 x1hnptsi xbixft xtqrqnz x1hz01jw x1778rvt xeuugli xj0a0fe",
70
- children: [/* @__PURE__ */ y(a.Root, {
71
- checked: e.visible,
72
- onCheckedChange: (t) => n(e.id, t),
73
- disabled: e.required,
74
- children: /* @__PURE__ */ y(a.Indicator, {})
75
- }), e.label]
76
- }, e.id))
77
- })
78
64
  })
65
+ }), /* @__PURE__ */ b(o.Portal, { children: /* @__PURE__ */ b(o.Positioner, {
66
+ align: "end",
67
+ children: /* @__PURE__ */ x(o.Popup, { children: [/* @__PURE__ */ b(o.Title, { children: "Display" }), /* @__PURE__ */ x("div", {
68
+ className: "xrvj5dj x1n8ia3y xfb3i0g",
69
+ children: [t.map((e) => /* @__PURE__ */ x("label", {
70
+ className: "x78zum5 x6s0dn4 x1hnptsi xbixft xtqrqnz x1hz01jw x1778rvt xeuugli xj0a0fe",
71
+ children: [/* @__PURE__ */ b(a.Root, {
72
+ checked: e.isChecked,
73
+ onCheckedChange: (t) => n(e.id, t),
74
+ disabled: e.isRequired,
75
+ children: /* @__PURE__ */ b(a.Indicator, {})
76
+ }), e.label]
77
+ }, e.id)), r !== void 0 && /* @__PURE__ */ b(e, {
78
+ type: "button",
79
+ variant: "ghost",
80
+ onClick: r,
81
+ children: "Reset defaults"
82
+ })]
83
+ })] })
79
84
  }) })] });
80
85
  }
81
- function A({ description: n, previous: r, next: i }) {
82
- return /* @__PURE__ */ b("nav", {
86
+ function ue({ description: n, previous: r, next: i }) {
87
+ return /* @__PURE__ */ x("nav", {
83
88
  "aria-label": "Pagination",
84
89
  className: "x78zum5 x6s0dn4 x1qughib x1a02dak xaml1ju xeuugli",
85
- children: [/* @__PURE__ */ y(t, { children: n }), /* @__PURE__ */ b("div", {
90
+ children: [/* @__PURE__ */ b(t, { children: n }), /* @__PURE__ */ x("div", {
86
91
  className: "x78zum5 x6s0dn4 x1a02dak x1hnptsi xeuugli xvc5jky",
87
- children: [/* @__PURE__ */ b(e, {
92
+ children: [/* @__PURE__ */ x(e, {
88
93
  variant: "outline",
89
94
  disabled: r.disabled,
90
95
  onClick: r.onClick,
91
- children: [/* @__PURE__ */ y(x, {
96
+ children: [/* @__PURE__ */ b(S, {
92
97
  size: 16,
93
98
  "aria-hidden": "true"
94
99
  }), "Previous"]
95
- }), /* @__PURE__ */ b(e, {
100
+ }), /* @__PURE__ */ x(e, {
96
101
  variant: "outline",
97
102
  disabled: i.disabled,
98
103
  onClick: i.onClick,
99
- children: ["Next", /* @__PURE__ */ y(S, {
104
+ children: ["Next", /* @__PURE__ */ b(C, {
100
105
  size: 16,
101
106
  "aria-hidden": "true"
102
107
  })]
@@ -105,8 +110,8 @@ function A({ description: n, previous: r, next: i }) {
105
110
  });
106
111
  }
107
112
  // packages/collections/src/use-end-reached.ts
108
- function le({ end: e, viewport: t, onEndReached: n, content: r }) {
109
- m(() => {
113
+ function de({ end: e, viewport: t, onEndReached: n, content: r }) {
114
+ h(() => {
110
115
  if (n === void 0 || e.current === null) return;
111
116
  let r = new IntersectionObserver((e) => {
112
117
  e.some((e) => e.isIntersecting) && n();
@@ -120,11 +125,11 @@ function le({ end: e, viewport: t, onEndReached: n, content: r }) {
120
125
  ]);
121
126
  }
122
127
  // packages/collections/src/data-table.tsx
123
- var ue = T({}), de = 76, fe = "a, button, input, select, textarea, label, summary, [role=\"button\"], [role=\"link\"], [role=\"switch\"], [role=\"checkbox\"], [role=\"radio\"], [role=\"combobox\"], [role=\"slider\"], [role=\"spinbutton\"], [role=\"textbox\"], [role=\"tab\"], [role^=\"menuitem\"], [contenteditable]:not([contenteditable=\"false\"]), [tabindex]:not([tabindex=\"-1\"])", pe = /* @__PURE__ */ new Map([["ArrowUp", -1], ["ArrowDown", 1]]), me = {
128
+ var fe = E({}), pe = 76, j = d.compactTable.slice(7), me = "a, button, input, select, textarea, label, summary, [role=\"button\"], [role=\"link\"], [role=\"switch\"], [role=\"checkbox\"], [role=\"radio\"], [role=\"combobox\"], [role=\"slider\"], [role=\"spinbutton\"], [role=\"textbox\"], [role=\"tab\"], [role^=\"menuitem\"], [contenteditable]:not([contenteditable=\"false\"]), [tabindex]:not([tabindex=\"-1\"])", he = /* @__PURE__ */ new Map([["ArrowUp", -1], ["ArrowDown", 1]]), M = {
124
129
  kmVPX3: "x1717udv",
125
130
  kMzoRj: "xc342km",
126
131
  $$css: !0
127
- }, j = {
132
+ }, N = {
128
133
  frame: {
129
134
  k7Eaqz: "xeuugli",
130
135
  kMv6JI: "x1hz01jw",
@@ -181,11 +186,11 @@ var ue = T({}), de = 76, fe = "a, button, input, select, textarea, label, summar
181
186
  $$css: !0
182
187
  },
183
188
  minimumWidth: (e, t) => [{
184
- k7Eaqz: (e == null ? e : "x7w7ha4 ") + (t == null ? t : "xzw3fdc"),
189
+ k7Eaqz: (e == null ? e : "x7w7ha4 ") + (t == null ? t : "x18ie477"),
185
190
  $$css: !0
186
191
  }, {
187
192
  "--x-1utbgw4": ((e) => typeof e == "number" ? e + "px" : e ?? void 0)(e),
188
- "--x-1omz25w": ((e) => typeof e == "number" ? e + "px" : e ?? void 0)(t)
193
+ "--x-1wqfzdf": ((e) => typeof e == "number" ? e + "px" : e ?? void 0)(t)
189
194
  }],
190
195
  caption: {
191
196
  k9WMMc: "xdpxx8g",
@@ -199,8 +204,8 @@ var ue = T({}), de = 76, fe = "a, button, input, select, textarea, label, summar
199
204
  kB7OPa: "x9f619",
200
205
  kVAEAm: "x7wzq59",
201
206
  k87sOh: "x13vifvy",
202
- kY2c9j: "x4k8i88",
203
- kZKoxP: "x24vdcc",
207
+ kY2c9j: "x11ru5tl",
208
+ kZKoxP: "x1krvmzm",
204
209
  k8WAf4: "xt970qd",
205
210
  kg3NbH: "x1dc62k6",
206
211
  kt9PQ7: "xso031l",
@@ -239,7 +244,7 @@ var ue = T({}), de = 76, fe = "a, button, input, select, textarea, label, summar
239
244
  "--x-minWidth": ((e) => typeof e == "number" ? e + "px" : e ?? void 0)(e)
240
245
  }],
241
246
  secondary: {
242
- k1xSpc: "xazwdyr",
247
+ k1xSpc: "xqxxu6g",
243
248
  $$css: !0
244
249
  },
245
250
  contentCell: {
@@ -247,114 +252,121 @@ var ue = T({}), de = 76, fe = "a, button, input, select, textarea, label, summar
247
252
  $$css: !0
248
253
  },
249
254
  spacer: (e) => [
250
- me,
255
+ M,
251
256
  {
252
257
  kZKoxP: e == null ? e : "x16ye13r",
253
258
  $$css: !0
254
259
  },
255
260
  { "--x-height": ((e) => typeof e == "number" ? e + "px" : e ?? void 0)(e) }
256
261
  ]
257
- }, M = {
262
+ }, P = {
258
263
  primary: {
259
264
  minimumWidth: 240,
260
- flexible: !0,
261
- truncate: !0
265
+ isFlexible: !0,
266
+ shouldTruncate: !0
262
267
  },
263
268
  text: {
264
269
  minimumWidth: 160,
265
- flexible: !1,
266
- truncate: !0
270
+ isFlexible: !1,
271
+ shouldTruncate: !0
267
272
  },
268
273
  status: {
269
274
  minimumWidth: 160,
270
- flexible: !1,
271
- truncate: !1
275
+ isFlexible: !1,
276
+ shouldTruncate: !1
272
277
  },
273
278
  number: {
274
279
  minimumWidth: 112,
275
- flexible: !1,
276
- truncate: !1
280
+ isFlexible: !1,
281
+ shouldTruncate: !1
277
282
  },
278
283
  timestamp: {
279
284
  minimumWidth: 160,
280
- flexible: !1,
281
- truncate: !1
285
+ isFlexible: !1,
286
+ shouldTruncate: !1
282
287
  },
283
288
  actions: {
284
289
  minimumWidth: 112,
285
- flexible: !1,
286
- truncate: !1
290
+ isFlexible: !1,
291
+ shouldTruncate: !1
287
292
  }
288
- }, he = {
289
- fixed: j.content,
290
- content: j.contentCell
291
- }, N = {
292
- primary: j.start,
293
- text: j.start,
294
- status: j.start,
295
- number: j.end,
296
- timestamp: j.end,
297
- actions: j.end
298
293
  }, ge = {
299
- content: j.content,
300
- fill: j.fillFrame
301
- }, P = {
302
- content: j.content,
303
- fill: j.fillViewport
294
+ fixed: N.content,
295
+ content: N.contentCell
296
+ }, F = {
297
+ primary: N.start,
298
+ text: N.start,
299
+ status: N.start,
300
+ number: N.end,
301
+ timestamp: N.end,
302
+ actions: N.end
303
+ }, I = {
304
+ content: N.content,
305
+ fill: N.fillFrame
306
+ }, L = {
307
+ content: N.content,
308
+ fill: N.fillViewport
304
309
  };
305
- function F(e) {
310
+ function _e(e) {
306
311
  return e.map((e) => {
307
- let t = M[e.role], n = e.width ?? (t.flexible ? void 0 : t.minimumWidth);
312
+ let t = P[e.role], n = e.width ?? (t.isFlexible ? void 0 : t.minimumWidth);
308
313
  return {
309
314
  ...e,
310
315
  ...n === void 0 ? {} : { width: n }
311
316
  };
312
317
  });
313
318
  }
314
- function I(e, t = 0) {
319
+ function ve(e, t = 0) {
315
320
  return {
316
- minimumWidth: e.reduce((e, t) => e + (t.width ?? M[t.role].minimumWidth), t),
317
- compactWidth: e.filter((e) => e.secondary !== !0).reduce((e, t) => e + (t.width ?? M[t.role].minimumWidth), t)
321
+ minimumWidth: e.reduce((e, t) => e + (t.width ?? P[t.role].minimumWidth), t),
322
+ compactWidth: e.filter((e) => e.isSecondary !== !0).reduce((e, t) => e + (t.width ?? P[t.role].minimumWidth), t)
318
323
  };
319
324
  }
320
- function _e({ columns: e, selectable: t = !1 }) {
321
- return /* @__PURE__ */ b("colgroup", { children: [t && /* @__PURE__ */ y("col", { className: "x1d7z9mz xeuugli x1dc62k6" }), e.map((e) => /* @__PURE__ */ y("col", { ...f.props(e.width !== void 0 && j.width(e.width), e.secondary === !0 && j.secondary) }, e.id))] });
325
+ function ye(e) {
326
+ let t = globalThis.matchMedia(j);
327
+ return t.addEventListener("change", e), () => t.removeEventListener("change", e);
328
+ }
329
+ function be() {
330
+ return globalThis.matchMedia(j).matches;
322
331
  }
323
- function L({ columns: e, sizing: t = "content", rowSizing: n = "fixed", hideHeaders: r = !1 }) {
324
- let i = F(e), { minimumWidth: a, compactWidth: o } = I(i);
325
- return /* @__PURE__ */ y("div", {
332
+ function xe({ columns: e, canSelect: t = !1 }) {
333
+ 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 && N.width(e.width), e.isSecondary === !0 && N.secondary) }, e.id))] });
334
+ }
335
+ function R({ columns: e, sizing: t = "content", rowSizing: n = "fixed", hideHeaders: r = !1 }) {
336
+ let i = _e(e), { minimumWidth: a, compactWidth: o } = ve(i);
337
+ return /* @__PURE__ */ b("div", {
326
338
  "aria-hidden": !0,
327
339
  inert: !0,
328
- ...f.props(j.frame, ge[t], j.placeholder),
329
- children: /* @__PURE__ */ y("div", {
330
- ...f.props(j.viewport, P[t]),
331
- children: /* @__PURE__ */ b("table", {
332
- ...f.props(j.table, j.fixed, j.minimumWidth(a, o)),
340
+ ...p.props(N.frame, I[t], N.placeholder),
341
+ children: /* @__PURE__ */ b("div", {
342
+ ...p.props(N.viewport, L[t]),
343
+ children: /* @__PURE__ */ x("table", {
344
+ ...p.props(N.table, N.fixed, N.minimumWidth(a, o)),
333
345
  children: [
334
- /* @__PURE__ */ y(_e, { columns: i }),
335
- /* @__PURE__ */ y("thead", {
336
- ...f.props(r && l.hidden),
337
- children: /* @__PURE__ */ y("tr", { children: i.map((e) => /* @__PURE__ */ y("th", {
338
- ...f.props(j.header, N[e.role], e.width !== void 0 && j.width(e.width), e.secondary === !0 && j.secondary),
339
- children: /* @__PURE__ */ y("span", {
346
+ /* @__PURE__ */ b(xe, { columns: i }),
347
+ /* @__PURE__ */ b("thead", {
348
+ ...p.props(r && l.hidden),
349
+ children: /* @__PURE__ */ b("tr", { children: i.map((e) => /* @__PURE__ */ b("th", {
350
+ ...p.props(N.header, F[e.role], e.width !== void 0 && N.width(e.width), e.isSecondary === !0 && N.secondary),
351
+ children: /* @__PURE__ */ b("span", {
340
352
  className: "x1lliihq xeuugli xb3r6kr xlyipyv xuxw1ft",
341
353
  children: e.label
342
354
  })
343
355
  }, e.id)) })
344
356
  }),
345
- /* @__PURE__ */ y("tbody", { children: [
357
+ /* @__PURE__ */ b("tbody", { children: [
346
358
  "first",
347
359
  "second",
348
360
  "third"
349
- ].map((e) => /* @__PURE__ */ y("tr", {
350
- className: "x1v2how9 xso031l x1q0q8m5 x1qndepd x13nmlw8 x1t1lzn6",
351
- children: i.map((e) => /* @__PURE__ */ y("td", {
352
- ...f.props(j.cell, he[n], N[e.role], e.width !== void 0 && j.width(e.width), e.secondary === !0 && j.secondary),
353
- children: /* @__PURE__ */ y(H, {
361
+ ].map((e) => /* @__PURE__ */ b("tr", {
362
+ className: "x1wtzb06 xso031l x1q0q8m5 x1qndepd x19k386i x1t1lzn6",
363
+ children: i.map((e) => /* @__PURE__ */ b("td", {
364
+ ...p.props(N.cell, ge[n], F[e.role], e.width !== void 0 && N.width(e.width), e.isSecondary === !0 && N.secondary),
365
+ children: /* @__PURE__ */ b(H, {
354
366
  role: e.role,
355
- fixed: n === "fixed",
356
- truncate: void 0,
357
- children: e.placeholder ?? /* @__PURE__ */ y(c, { width: "60%" })
367
+ isFixed: n === "fixed",
368
+ shouldTruncate: void 0,
369
+ children: e.placeholder ?? /* @__PURE__ */ b(c, { width: "60%" })
358
370
  })
359
371
  }, e.id))
360
372
  }, e)) })
@@ -363,97 +375,97 @@ function L({ columns: e, sizing: t = "content", rowSizing: n = "fixed", hideHead
363
375
  })
364
376
  });
365
377
  }
366
- function R({ children: e, leading: t, decorative: n = !1 }) {
367
- return /* @__PURE__ */ b("span", {
378
+ function z({ children: e, leading: t, isDecorative: n = !1 }) {
379
+ return /* @__PURE__ */ x("span", {
368
380
  "aria-hidden": n || void 0,
369
381
  inert: n || void 0,
370
382
  className: "x78zum5 x6s0dn4 x1n8ia3y xeuugli xh8yej3",
371
- children: [t !== void 0 && /* @__PURE__ */ y("span", {
383
+ children: [t !== void 0 && /* @__PURE__ */ b("span", {
372
384
  "aria-hidden": !0,
373
385
  className: "x3nfvp2 x6s0dn4 x2lah0s",
374
386
  children: t
375
- }), /* @__PURE__ */ y("span", {
387
+ }), /* @__PURE__ */ b("span", {
376
388
  className: "x98rzlu xeuugli",
377
389
  children: e
378
390
  })]
379
391
  });
380
392
  }
381
- function z({ children: e, secondary: t, leading: n, trailing: r }) {
382
- return /* @__PURE__ */ b(R, {
393
+ function B({ children: e, secondary: t, leading: n, trailing: r }) {
394
+ return /* @__PURE__ */ x(z, {
383
395
  leading: n,
384
- children: [/* @__PURE__ */ b("span", {
396
+ children: [/* @__PURE__ */ x("span", {
385
397
  className: "x78zum5 x6s0dn4 x1hnptsi xeuugli",
386
- children: [/* @__PURE__ */ y("span", {
398
+ children: [/* @__PURE__ */ b("span", {
387
399
  title: e,
388
400
  className: "x1lliihq xeuugli x14atkfc xs83m0k xb3r6kr xuxw1ft xlyipyv",
389
401
  children: e
390
- }), r != null && /* @__PURE__ */ y("span", {
402
+ }), r != null && /* @__PURE__ */ b("span", {
391
403
  className: "x3nfvp2 x6s0dn4 x2lah0s",
392
404
  children: r
393
405
  })]
394
- }), t !== void 0 && /* @__PURE__ */ y("span", {
406
+ }), t !== void 0 && /* @__PURE__ */ b("span", {
395
407
  title: t,
396
408
  className: "x1lliihq xeuugli xh8yej3 xb3r6kr xuxw1ft xlyipyv x153jb6y xy8obcc xas2l8k",
397
409
  children: t
398
410
  })]
399
411
  });
400
412
  }
401
- function B({ leading: e, secondary: t = !1 }) {
402
- return /* @__PURE__ */ b(R, {
413
+ function V({ leading: e, isSecondary: t = !1 }) {
414
+ return /* @__PURE__ */ x(z, {
403
415
  leading: e,
404
- decorative: !0,
405
- children: [/* @__PURE__ */ y("span", {
416
+ isDecorative: !0,
417
+ children: [/* @__PURE__ */ b("span", {
406
418
  className: "x1lliihq xeuugli xh8yej3",
407
- children: /* @__PURE__ */ y(c, { width: "70%" })
408
- }), t && /* @__PURE__ */ y("span", {
419
+ children: /* @__PURE__ */ b(c, { width: "70%" })
420
+ }), t && /* @__PURE__ */ b("span", {
409
421
  className: "x1lliihq xeuugli xh8yej3 x153jb6y xy8obcc xas2l8k",
410
- children: /* @__PURE__ */ y(c, { width: "45%" })
422
+ children: /* @__PURE__ */ b(c, { width: "45%" })
411
423
  })]
412
424
  });
413
425
  }
414
- function V({ rows: e, columns: t, getRowId: n, caption: r, empty: i, sort: o, onSortChange: s, selectedIds: c, onSelectionChange: d, selectionLabel: p, rowAction: v, activeRowId: x, focusRowId: S, hideCaption: C = !1, hideHeaders: w = !1, rowSizing: T = "fixed", window: E, endContent: D, onEndReached: O, footer: k }) {
415
- let A = te(() => F(t), [t]), me = te(() => {
416
- let e = ae();
426
+ function Se({ rows: e, columns: t, getRowId: n, caption: r, empty: i, sort: o, onSortChange: s, selectedIds: c, onSelectionChange: d, selectionLabel: f, rowAction: m, activeRowId: y, focusRowId: S, hideCaption: C = !1, hideHeaders: w = !1, rowSizing: T = "fixed", window: E, endContent: D, onEndReached: O, footer: k }) {
427
+ let A = te(() => _e(t), [t]), ue = ne(ye, be, () => !1), j = te(() => {
428
+ let e = oe();
417
429
  return e.columns(A.map((t) => e.display({
418
430
  id: t.id,
419
431
  header: t.label
420
432
  })));
421
- }, [A]), M = oe({
422
- features: ue,
423
- columns: me,
433
+ }, [A]), M = se({
434
+ features: fe,
435
+ columns: j,
424
436
  data: e,
425
437
  getRowId: n
426
- }), L = g(null), R = g(null), z = g(null), B = g(null), [V, ye] = _(0), [be, W] = _(), G = g(void 0), K = g(void 0), q = e.findIndex((e) => n(e) === be), J = A.findIndex((e) => e.role === "primary" && e.secondary !== !0), xe = J === -1 ? A.findIndex((e) => e.secondary !== !0) : J, Y = typeof E?.height == "string" ? E.height : "content";
427
- h(() => {
438
+ }), P = _(null), R = _(null), z = _(null), B = _(null), [V, Se] = v(0), [we, W] = v(), G = _(void 0), K = _(void 0), q = e.findIndex((e) => n(e) === we), J = A.findIndex((e) => e.role === "primary" && e.isSecondary !== !0), Y = J === -1 ? A.findIndex((e) => e.isSecondary !== !0) : J, X = typeof E?.height == "string" ? E.height : "content";
439
+ g(() => {
428
440
  if (S === void 0) {
429
441
  K.current = void 0;
430
442
  return;
431
443
  }
432
444
  if (K.current === S) return;
433
- let e = L.current?.querySelector(`[data-row-id="${CSS.escape(S)}"] [data-row-action]`);
445
+ let e = P.current?.querySelector(`[data-row-id="${CSS.escape(S)}"] [data-row-action]`);
434
446
  if (e == null) return;
435
447
  let t = requestAnimationFrame(() => {
436
448
  e.focus({ preventScroll: !0 }), K.current = S;
437
449
  });
438
450
  return () => cancelAnimationFrame(t);
439
- }, [e, S]), le({
451
+ }, [e, S]), de({
440
452
  end: R,
441
453
  onEndReached: E === void 0 ? O : void 0,
442
454
  content: e.length
443
- }), m(() => {
455
+ }), h(() => {
444
456
  let e = z.current, t = B.current;
445
457
  if (E === void 0 || e === null || t === null) return;
446
- let n = new ResizeObserver(() => ye(e.offsetHeight + t.offsetHeight));
458
+ let n = new ResizeObserver(() => Se(e.offsetHeight + t.offsetHeight));
447
459
  return n.observe(e), n.observe(t), () => n.disconnect();
448
460
  }, [
449
461
  E,
450
462
  C,
451
463
  w
452
464
  ]);
453
- let X = ce({
465
+ let Z = le({
454
466
  count: e.length,
455
467
  enabled: E !== void 0,
456
- getScrollElement: () => L.current,
468
+ getScrollElement: () => P.current,
457
469
  getItemKey: (t) => {
458
470
  let r = e[t];
459
471
  if (r === void 0) throw RangeError("The virtual row is outside the supplied table page.");
@@ -464,7 +476,7 @@ function V({ rows: e, columns: t, getRowId: n, caption: r, empty: i, sort: o, on
464
476
  scrollPaddingStart: V,
465
477
  overscan: 6,
466
478
  rangeExtractor: (t) => {
467
- let n = se(t);
479
+ let n = ce(t);
468
480
  return q === -1 ? n : [.../* @__PURE__ */ new Set([
469
481
  ...n,
470
482
  q - 1,
@@ -472,80 +484,80 @@ function V({ rows: e, columns: t, getRowId: n, caption: r, empty: i, sort: o, on
472
484
  q + 1
473
485
  ])].filter((t) => t >= 0 && t < e.length).toSorted((e, t) => e - t);
474
486
  }
475
- }), Se = E === void 0 ? M.getRowModel().rows.map((e, t) => ({
487
+ }), Te = E === void 0 ? M.getRowModel().rows.map((e, t) => ({
476
488
  row: e,
477
489
  index: t,
478
490
  spacerHeight: 0
479
- })) : X.getVirtualItems().flatMap((e, t, n) => {
491
+ })) : Z.getVirtualItems().flatMap((e, t, n) => {
480
492
  let r = M.getRowModel().rows[e.index];
481
493
  return r === void 0 ? [] : [{
482
494
  row: r,
483
495
  index: e.index,
484
496
  spacerHeight: e.start - (n[t - 1]?.end ?? V)
485
497
  }];
486
- }), Z = E !== void 0 && (e.length === 0 || X.range?.endIndex === e.length - 1);
487
- m(() => {
488
- Z && O?.();
498
+ }), Q = E !== void 0 && (e.length === 0 || Z.range?.endIndex === e.length - 1);
499
+ h(() => {
500
+ Q && O?.();
489
501
  }, [
490
- Z,
502
+ Q,
491
503
  O,
492
504
  e.length
493
- ]), h(() => {
505
+ ]), g(() => {
494
506
  if (G.current === void 0) return;
495
- let e = Array.from(L.current?.querySelectorAll("[data-row-id]") ?? []).find((e) => e.dataset.rowId === G.current)?.querySelector("[data-row-action]");
507
+ let e = Array.from(P.current?.querySelectorAll("[data-row-id]") ?? []).find((e) => e.dataset.rowId === G.current)?.querySelector("[data-row-action]");
496
508
  e != null && (e.focus({ preventScroll: E !== void 0 }), G.current = void 0);
497
509
  });
498
- function Ce(t, r) {
510
+ function Ee(t, r) {
499
511
  let i = t.metaKey || t.ctrlKey, a = t.altKey || t.shiftKey;
500
512
  if (i || a) return;
501
- let o = pe.get(t.key);
513
+ let o = he.get(t.key);
502
514
  if (o === void 0) return;
503
515
  t.preventDefault();
504
516
  let s = r + o, c = e[s];
505
- c !== void 0 && (G.current = n(c), W(G.current), E !== void 0 && X.scrollToIndex(s, { align: "auto" }));
517
+ c !== void 0 && (G.current = n(c), W(G.current), E !== void 0 && Z.scrollToIndex(s, { align: "auto" }));
506
518
  }
507
- let Q = A.length + (c === void 0 ? 0 : 1), $ = c === void 0 ? 0 : de, we = k != null && typeof k != "boolean", { minimumWidth: Te, compactWidth: Ee } = I(A, $), De = X.getTotalSize() - (X.getVirtualItems().at(-1)?.end ?? V) + V;
508
- return /* @__PURE__ */ b("div", {
509
- ...f.props(j.frame, ge[Y]),
510
- children: [/* @__PURE__ */ b("div", {
511
- ref: L,
519
+ let $ = A.filter((e) => !ue || e.isSecondary !== !0).length + (c === void 0 ? 0 : 1), De = c === void 0 ? 0 : pe, Oe = k != null && typeof k != "boolean", { minimumWidth: ke, compactWidth: Ae } = ve(A, De), je = Z.getTotalSize() - (Z.getVirtualItems().at(-1)?.end ?? V) + V;
520
+ return /* @__PURE__ */ x("div", {
521
+ ...p.props(N.frame, I[X]),
522
+ children: [/* @__PURE__ */ x("div", {
523
+ ref: P,
512
524
  role: "region",
513
525
  "aria-label": r,
514
526
  tabIndex: 0,
515
- ...f.props(j.viewport, P[Y], typeof E?.height == "number" && j.virtual(E.height)),
516
- children: [/* @__PURE__ */ b("table", {
527
+ ...p.props(N.viewport, L[X], typeof E?.height == "number" && N.virtual(E.height)),
528
+ children: [/* @__PURE__ */ x("table", {
517
529
  "aria-rowcount": E === void 0 ? void 0 : Math.max(1, e.length) + 1,
518
- ...f.props(j.table, j.fixed, j.minimumWidth(Te, Ee)),
530
+ ...p.props(N.table, N.fixed, N.minimumWidth(ke, Ae)),
519
531
  children: [
520
- /* @__PURE__ */ y("caption", {
532
+ /* @__PURE__ */ b("caption", {
521
533
  ref: z,
522
- ...f.props(j.caption, C && l.hidden),
534
+ ...p.props(N.caption, C && l.hidden),
523
535
  children: r
524
536
  }),
525
- /* @__PURE__ */ y(_e, {
537
+ /* @__PURE__ */ b(xe, {
526
538
  columns: A,
527
- selectable: c !== void 0
539
+ canSelect: c !== void 0
528
540
  }),
529
- /* @__PURE__ */ y("thead", {
541
+ /* @__PURE__ */ b("thead", {
530
542
  ref: B,
531
- ...f.props(w && l.hidden),
532
- children: /* @__PURE__ */ b("tr", { children: [c !== void 0 && /* @__PURE__ */ y("th", {
543
+ ...p.props(w && l.hidden),
544
+ children: /* @__PURE__ */ x("tr", { children: [c !== void 0 && /* @__PURE__ */ b("th", {
533
545
  scope: "col",
534
- className: "x9f619 x7wzq59 x13vifvy x4k8i88 x24vdcc xt970qd xso031l x1q0q8m5 x1qndepd x153jb6y xpvm0e4 xj57cvi xy8obcc xas2l8k xuxw1ft x1d7z9mz xeuugli x1dc62k6",
535
- children: /* @__PURE__ */ y("span", {
536
- ...f.props(l.hidden),
546
+ className: "x9f619 x7wzq59 x13vifvy x11ru5tl x1krvmzm xt970qd xso031l x1q0q8m5 x1qndepd x153jb6y xpvm0e4 xj57cvi xy8obcc xas2l8k xuxw1ft x1d7z9mz xeuugli x1dc62k6",
547
+ children: /* @__PURE__ */ b("span", {
548
+ ...p.props(l.hidden),
537
549
  children: "Select"
538
550
  })
539
551
  }), A.map((e) => {
540
552
  let t = o?.columnId === e.id ? o.direction : void 0;
541
- return /* @__PURE__ */ y("th", {
553
+ return /* @__PURE__ */ b("th", {
542
554
  scope: "col",
543
555
  title: e.label,
544
556
  "aria-sort": t,
545
- ...f.props(j.header, N[e.role], e.width !== void 0 && j.width(e.width), e.secondary === !0 && j.secondary),
546
- children: e.sortable === !0 && s !== void 0 ? /* @__PURE__ */ b("button", {
557
+ ...p.props(N.header, F[e.role], e.width !== void 0 && N.width(e.width), e.isSecondary === !0 && N.secondary),
558
+ children: e.canSort === !0 && s !== void 0 ? /* @__PURE__ */ x("button", {
547
559
  type: "button",
548
- className: "x3nfvp2 x6s0dn4 x1hnptsi x193iq5w xeuugli x3h6u66 xwu7q15 x1717udv xc342km x1heor9g xjbqb8w xjb2p0i x1qlqyl8 x1pd3egz x15bjb6t x1ypdohk x1mkgjtd x1s9zmfe x13qnu6 x9v5kkp x19rmrnh x7s97pk",
560
+ className: "x3nfvp2 x6s0dn4 x1hnptsi x193iq5w xeuugli x2zujid x17oiadl x1717udv xc342km x1heor9g xjbqb8w xjb2p0i x1qlqyl8 x1pd3egz x15bjb6t x1ypdohk xp9636p x1s9zmfe x13qnu6 x9v5kkp x19rmrnh x7s97pk",
549
561
  onClick: () => {
550
562
  s(t === "ascending" ? {
551
563
  columnId: e.id,
@@ -555,97 +567,97 @@ function V({ rows: e, columns: t, getRowId: n, caption: r, empty: i, sort: o, on
555
567
  direction: "ascending"
556
568
  });
557
569
  },
558
- children: [/* @__PURE__ */ y("span", {
570
+ children: [/* @__PURE__ */ b("span", {
559
571
  className: "x1lliihq xeuugli xb3r6kr xlyipyv xuxw1ft",
560
572
  children: e.label
561
- }), y(t === "ascending" ? re : t === "descending" ? ne : ie, {
573
+ }), b(t === "ascending" ? ie : t === "descending" ? re : ae, {
562
574
  size: 14,
563
575
  "aria-hidden": "true",
564
576
  className: "x2lah0s"
565
577
  })]
566
- }) : /* @__PURE__ */ y("span", {
578
+ }) : /* @__PURE__ */ b("span", {
567
579
  className: "x1lliihq xeuugli xb3r6kr xlyipyv xuxw1ft",
568
580
  children: e.label
569
581
  })
570
582
  }, e.id);
571
583
  })] })
572
584
  }),
573
- /* @__PURE__ */ b("tbody", {
585
+ /* @__PURE__ */ x("tbody", {
574
586
  onBlur: (e) => {
575
587
  e.currentTarget.contains(e.relatedTarget) || W(void 0);
576
588
  },
577
589
  children: [
578
- Se.map(({ row: e, index: t, spacerHeight: n }) => /* @__PURE__ */ b(ee, { children: [n > 0 && /* @__PURE__ */ y("tr", {
590
+ Te.map(({ row: e, index: t, spacerHeight: n }) => /* @__PURE__ */ x(ee, { children: [n > 0 && /* @__PURE__ */ b("tr", {
579
591
  "aria-hidden": "true",
580
- children: /* @__PURE__ */ y("td", {
581
- colSpan: Q,
582
- ...f.props(j.spacer(n))
592
+ children: /* @__PURE__ */ b("td", {
593
+ colSpan: $,
594
+ ...p.props(N.spacer(n))
583
595
  })
584
- }), /* @__PURE__ */ b("tr", {
596
+ }), /* @__PURE__ */ x("tr", {
585
597
  "data-index": t,
586
598
  "data-row-id": e.id,
587
599
  "aria-rowindex": E === void 0 ? void 0 : t + 2,
588
- ref: E === void 0 || T === "fixed" ? void 0 : X.measureElement,
600
+ ref: E === void 0 || T === "fixed" ? void 0 : Z.measureElement,
589
601
  onFocus: () => W(e.id),
590
602
  onClick: (e) => {
591
- if (v === void 0 || !U(e) || e.target instanceof Element && e.target.closest(fe) !== null) return;
603
+ if (m === void 0 || !U(e) || e.target instanceof Element && e.target.closest(me) !== null) return;
592
604
  let t = e.currentTarget.querySelector("[data-row-action]");
593
605
  t?.focus({ preventScroll: !0 }), t?.click();
594
606
  },
595
607
  ...{
596
- 0: { className: "x1v2how9 xso031l x1q0q8m5 x1qndepd x13nmlw8 x1t1lzn6" },
597
- 2: { className: "x1v2how9 xso031l x1q0q8m5 x1qndepd x13nmlw8 x1t1lzn6 x1ypdohk x1ecmtor" },
598
- 1: { className: "x1v2how9 xso031l x1q0q8m5 x1qndepd x13nmlw8 x1t1lzn6 x1r8u7ye" },
599
- 3: { className: "x1v2how9 xso031l x1q0q8m5 x1qndepd x13nmlw8 x1t1lzn6 x1ypdohk x1ecmtor x1r8u7ye" }
600
- }[(v !== void 0) << 1 | (c?.has(e.id) === !0 || x === e.id)],
601
- children: [c !== void 0 && /* @__PURE__ */ y("td", {
608
+ 0: { className: "x1wtzb06 xso031l x1q0q8m5 x1qndepd x19k386i x1t1lzn6" },
609
+ 2: { className: "x1wtzb06 xso031l x1q0q8m5 x1qndepd x19k386i x1t1lzn6 x1ypdohk x1ecmtor" },
610
+ 1: { className: "x1wtzb06 xso031l x1q0q8m5 x1qndepd x19k386i x1t1lzn6 x1r8u7ye" },
611
+ 3: { className: "x1wtzb06 xso031l x1q0q8m5 x1qndepd x19k386i x1t1lzn6 x1ypdohk x1ecmtor x1r8u7ye" }
612
+ }[(m !== void 0) << 1 | (c?.has(e.id) === !0 || y === e.id)],
613
+ children: [c !== void 0 && /* @__PURE__ */ b("td", {
602
614
  className: "x9f619 xt970qd xxymvpz xj0a0fe x1d7z9mz xeuugli x1dc62k6",
603
- children: /* @__PURE__ */ y(a.Root, {
604
- "aria-label": p(e.original),
615
+ children: /* @__PURE__ */ b(a.Root, {
616
+ "aria-label": f(e.original),
605
617
  checked: c.has(e.id),
606
618
  onCheckedChange: (t) => {
607
619
  let n = new Set(c);
608
620
  t ? n.add(e.id) : n.delete(e.id), d(n);
609
621
  },
610
- children: /* @__PURE__ */ y(a.Indicator, {})
622
+ children: /* @__PURE__ */ b(a.Indicator, {})
611
623
  })
612
- }), A.map((n, r) => /* @__PURE__ */ y("td", {
613
- ...f.props(j.cell, he[T], N[n.role], n.width !== void 0 && j.width(n.width), n.secondary === !0 && j.secondary),
614
- children: v !== void 0 && r === xe ? /* @__PURE__ */ y(ve, {
624
+ }), A.map((n, r) => /* @__PURE__ */ b("td", {
625
+ ...p.props(N.cell, ge[T], F[n.role], n.width !== void 0 && N.width(n.width), n.isSecondary === !0 && N.secondary),
626
+ children: m !== void 0 && r === Y ? /* @__PURE__ */ b(Ce, {
615
627
  row: e.original,
616
- action: v,
617
- active: x === e.id,
618
- onKeyDown: (e) => Ce(e, t),
619
- children: /* @__PURE__ */ y(H, {
628
+ action: m,
629
+ isActive: y === e.id,
630
+ onKeyDown: (e) => Ee(e, t),
631
+ children: /* @__PURE__ */ b(H, {
620
632
  role: n.role,
621
- fixed: T === "fixed",
622
- truncate: n.truncate,
633
+ isFixed: T === "fixed",
634
+ shouldTruncate: n.shouldTruncate,
623
635
  children: n.cell(e.original)
624
636
  })
625
- }) : /* @__PURE__ */ y(H, {
637
+ }) : /* @__PURE__ */ b(H, {
626
638
  role: n.role,
627
- fixed: T === "fixed",
628
- truncate: n.truncate,
639
+ isFixed: T === "fixed",
640
+ shouldTruncate: n.shouldTruncate,
629
641
  children: n.cell(e.original)
630
642
  })
631
643
  }, n.id))]
632
644
  })] }, e.id)),
633
- E !== void 0 && De > 0 && /* @__PURE__ */ y("tr", {
645
+ E !== void 0 && je > 0 && /* @__PURE__ */ b("tr", {
634
646
  "aria-hidden": "true",
635
- children: /* @__PURE__ */ y("td", {
636
- colSpan: Q,
637
- ...f.props(j.spacer(De))
647
+ children: /* @__PURE__ */ b("td", {
648
+ colSpan: $,
649
+ ...p.props(N.spacer(je))
638
650
  })
639
651
  }),
640
- e.length === 0 && /* @__PURE__ */ y("tr", { children: /* @__PURE__ */ y("td", {
641
- colSpan: Q,
652
+ e.length === 0 && /* @__PURE__ */ b("tr", { children: /* @__PURE__ */ b("td", {
653
+ colSpan: $,
642
654
  className: "x1ttojsm x2b8uid x153jb6y",
643
655
  children: i
644
656
  }) })
645
657
  ]
646
658
  })
647
659
  ]
648
- }), /* @__PURE__ */ y("div", {
660
+ }), /* @__PURE__ */ b("div", {
649
661
  ref: R,
650
662
  ...{
651
663
  0: {},
@@ -653,31 +665,31 @@ function V({ rows: e, columns: t, getRowId: n, caption: r, empty: i, sort: o, on
653
665
  }[D !== void 0 | 0],
654
666
  children: D
655
667
  })]
656
- }), we && /* @__PURE__ */ y("div", {
668
+ }), Oe && /* @__PURE__ */ b("div", {
657
669
  className: "xg7ukam x178xt8z x13fuv20 xhjagg4",
658
670
  children: k
659
671
  })]
660
672
  });
661
673
  }
662
- function H({ role: e, fixed: t, truncate: n, children: r }) {
663
- let i = M[e], a = t && i.truncate, o = typeof r == "string" && (n ?? a);
664
- return /* @__PURE__ */ y("span", {
674
+ function H({ role: e, isFixed: t, shouldTruncate: n, children: r }) {
675
+ let i = P[e], a = t && i.shouldTruncate, o = typeof r == "string" && (n ?? a);
676
+ return /* @__PURE__ */ b("span", {
665
677
  ...{
666
- 0: { className: "x78zum5 x6s0dn4 xeuugli xh8yej3 xz7qr2x" },
678
+ 0: { className: "x78zum5 x6s0dn4 xeuugli xh8yej3 xw3im37" },
667
679
  1: { className: "x78zum5 x6s0dn4 xeuugli xh8yej3 xt7dq6l" }
668
680
  }[!t | 0],
669
- children: /* @__PURE__ */ y("span", {
681
+ children: /* @__PURE__ */ b("span", {
670
682
  title: typeof r == "string" ? r : void 0,
671
683
  ...{
672
684
  0: { className: "x1lliihq xeuugli xh8yej3 x193iq5w" },
673
- 4: { className: "x1lliihq xeuugli xh8yej3 x193iq5w xhbluta" },
685
+ 4: { className: "x1lliihq xeuugli xh8yej3 x193iq5w x1l6neo7" },
674
686
  2: { className: "x1lliihq xeuugli xh8yej3 x193iq5w xuxw1ft" },
675
- 6: { className: "x1lliihq xeuugli xh8yej3 x193iq5w xhbluta xuxw1ft" },
687
+ 6: { className: "x1lliihq xeuugli xh8yej3 x193iq5w x1l6neo7 xuxw1ft" },
676
688
  1: { className: "x1lliihq xeuugli xh8yej3 x193iq5w xb3r6kr xuxw1ft xlyipyv" },
677
- 5: { className: "x1lliihq xeuugli xh8yej3 x193iq5w xhbluta xb3r6kr xuxw1ft xlyipyv" },
689
+ 5: { className: "x1lliihq xeuugli xh8yej3 x193iq5w x1l6neo7 xb3r6kr xuxw1ft xlyipyv" },
678
690
  3: { className: "x1lliihq xeuugli xh8yej3 x193iq5w xb3r6kr xuxw1ft xlyipyv" },
679
- 7: { className: "x1lliihq xeuugli xh8yej3 x193iq5w xhbluta xb3r6kr xuxw1ft xlyipyv" }
680
- }[!!t << 2 | !(!t || i.truncate) << 1 | !!o],
691
+ 7: { className: "x1lliihq xeuugli xh8yej3 x193iq5w x1l6neo7 xb3r6kr xuxw1ft xlyipyv" }
692
+ }[!!t << 2 | !(!t || i.shouldTruncate) << 1 | !!o],
681
693
  children: r
682
694
  })
683
695
  });
@@ -687,8 +699,8 @@ function U(e) {
687
699
  let t = e.metaKey || e.ctrlKey, n = e.altKey || e.shiftKey;
688
700
  return t || n ? !1 : e.detail === 0 || e.currentTarget.ownerDocument.getSelection()?.isCollapsed !== !1;
689
701
  }
690
- function ve({ row: e, action: t, active: n, children: r, onKeyDown: i }) {
691
- let a = t.label?.(e), o = t.href === void 0 ? /* @__PURE__ */ y("button", {
702
+ function Ce({ row: e, action: t, isActive: n, children: r, onKeyDown: i }) {
703
+ let a = t.label?.(e), o = t.href === void 0 ? /* @__PURE__ */ b("button", {
692
704
  type: "button",
693
705
  "aria-label": a,
694
706
  "aria-pressed": n,
@@ -697,9 +709,9 @@ function ve({ row: e, action: t, active: n, children: r, onKeyDown: i }) {
697
709
  onClick: (n) => {
698
710
  U(n) && t.onActivate(e);
699
711
  },
700
- className: "x1rh3ycu x1hx0egp x78zum5 x6s0dn4 xh8yej3 xeuugli x17tes2r xwu7q15 x1717udv xc342km x1ok0vyi x1heor9g xjbqb8w xjb2p0i x1qlqyl8 x1pd3egz x15bjb6t x16tdsg8 x1hl2dhg x1ypdohk x13qnu6 x9v5kkp x19rmrnh x7s97pk",
712
+ className: "x1rh3ycu x1hx0egp x78zum5 x6s0dn4 xh8yej3 xeuugli x17tes2r x17oiadl x1717udv xc342km x1ok0vyi x1heor9g xjbqb8w xjb2p0i x1qlqyl8 x1pd3egz x15bjb6t x16tdsg8 x1hl2dhg x1ypdohk x13qnu6 x9v5kkp x19rmrnh x7s97pk",
701
713
  children: r
702
- }) : /* @__PURE__ */ y("a", {
714
+ }) : /* @__PURE__ */ b("a", {
703
715
  href: t.href(e),
704
716
  "aria-label": a,
705
717
  "data-row-action": !0,
@@ -707,55 +719,55 @@ function ve({ row: e, action: t, active: n, children: r, onKeyDown: i }) {
707
719
  onClick: (n) => {
708
720
  t.onActivate !== void 0 && U(n) && (n.preventDefault(), t.onActivate(e));
709
721
  },
710
- className: "x1rh3ycu x1hx0egp x78zum5 x6s0dn4 xh8yej3 xeuugli x17tes2r xwu7q15 x1717udv xc342km x1ok0vyi x1heor9g xjbqb8w xjb2p0i x1qlqyl8 x1pd3egz x15bjb6t x16tdsg8 x1hl2dhg x1ypdohk x13qnu6 x9v5kkp x19rmrnh x7s97pk",
722
+ className: "x1rh3ycu x1hx0egp x78zum5 x6s0dn4 xh8yej3 xeuugli x17tes2r x17oiadl x1717udv xc342km x1ok0vyi x1heor9g xjbqb8w xjb2p0i x1qlqyl8 x1pd3egz x15bjb6t x16tdsg8 x1hl2dhg x1ypdohk x13qnu6 x9v5kkp x19rmrnh x7s97pk",
711
723
  children: r
712
724
  });
713
- return a === void 0 ? o : /* @__PURE__ */ b(s.Root, { children: [/* @__PURE__ */ y(s.Trigger, { render: o }), /* @__PURE__ */ y(s.Portal, { children: /* @__PURE__ */ y(s.Positioner, {
725
+ return a === void 0 ? o : /* @__PURE__ */ x(s.Root, { children: [/* @__PURE__ */ b(s.Trigger, { render: o }), /* @__PURE__ */ b(s.Portal, { children: /* @__PURE__ */ b(s.Positioner, {
714
726
  side: "top",
715
727
  align: "start",
716
- children: /* @__PURE__ */ y(s.Popup, { children: a })
728
+ children: /* @__PURE__ */ b(s.Popup, { children: a })
717
729
  }) })] });
718
730
  }
719
731
  // packages/collections/src/collection-scroll.tsx
720
- function ye(r) {
732
+ function we(r) {
721
733
  switch (r.status) {
722
- case "loading": return /* @__PURE__ */ y(t, {
734
+ case "loading": return /* @__PURE__ */ b(t, {
723
735
  role: "status",
724
736
  variant: "caption",
725
737
  tone: "muted",
726
738
  children: r.message ?? "Loading…"
727
739
  });
728
- case "complete": return r.message === void 0 ? null : /* @__PURE__ */ y(t, {
740
+ case "complete": return r.message === void 0 ? null : /* @__PURE__ */ b(t, {
729
741
  variant: "caption",
730
742
  tone: "muted",
731
743
  children: r.message
732
744
  });
733
- case "ready": return /* @__PURE__ */ y(e, {
745
+ case "ready": return /* @__PURE__ */ b(e, {
734
746
  onClick: r.onLoadMore,
735
747
  children: r.message ?? "Load more"
736
748
  });
737
- case "error": return /* @__PURE__ */ b(n, {
749
+ case "error": return /* @__PURE__ */ x(n, {
738
750
  role: "status",
739
- children: [/* @__PURE__ */ y(t, {
751
+ children: [/* @__PURE__ */ b(t, {
740
752
  variant: "caption",
741
753
  tone: "muted",
742
754
  children: r.message ?? "More records could not be loaded."
743
- }), /* @__PURE__ */ y(e, {
755
+ }), /* @__PURE__ */ b(e, {
744
756
  onClick: r.onLoadMore,
745
757
  children: "Retry"
746
758
  })]
747
759
  });
748
760
  }
749
761
  }
750
- function be({ children: e, endContent: t, onEndReached: n, fill: r = !1, endPosition: i = "end", label: a = "Collection" }) {
751
- let o = g(null), s = g(null);
752
- le({
762
+ function W({ children: e, endContent: t, onEndReached: n, shouldFill: r = !1, endPosition: i = "end", label: a = "Collection" }) {
763
+ let o = _(null), s = _(null);
764
+ de({
753
765
  end: s,
754
766
  viewport: r ? o : void 0,
755
767
  onEndReached: n,
756
768
  content: e
757
769
  });
758
- let c = /* @__PURE__ */ y("div", {
770
+ let c = /* @__PURE__ */ b("div", {
759
771
  ref: s,
760
772
  ...{
761
773
  0: {},
@@ -763,7 +775,7 @@ function be({ children: e, endContent: t, onEndReached: n, fill: r = !1, endPosi
763
775
  }[t !== void 0 | 0],
764
776
  children: t
765
777
  });
766
- return /* @__PURE__ */ b("div", {
778
+ return /* @__PURE__ */ x("div", {
767
779
  ref: o,
768
780
  role: r ? "region" : void 0,
769
781
  "aria-label": r ? a : void 0,
@@ -780,44 +792,44 @@ function be({ children: e, endContent: t, onEndReached: n, fill: r = !1, endPosi
780
792
  });
781
793
  }
782
794
  // packages/collections/src/inspector.tsx
783
- var W = 860;
784
- function G({ master: t, detail: n, label: r, masterLabel: i, revealKey: a, returnFocusRef: o, ...s }) {
785
- let c = g(null), l = g(null), u = g(null);
786
- h(() => {
787
- a !== void 0 && c.current !== null && u.current !== null && c.current.clientWidth <= W && (u.current.focus({ preventScroll: !0 }), u.current.scrollIntoView({
795
+ var G = 860;
796
+ function K({ master: t, detail: n, label: r, masterLabel: i, revealKey: a, returnFocusRef: o, ...s }) {
797
+ let c = _(null), l = _(null), u = _(null);
798
+ g(() => {
799
+ a !== void 0 && c.current !== null && u.current !== null && c.current.clientWidth <= G && (u.current.focus({ preventScroll: !0 }), u.current.scrollIntoView({
788
800
  block: "start",
789
801
  behavior: "instant"
790
802
  }));
791
803
  }, [a]);
792
- function f() {
804
+ function d() {
793
805
  let e = o?.current ?? l.current;
794
806
  e?.focus({ preventScroll: !0 }), e?.scrollIntoView({
795
807
  block: "nearest",
796
808
  behavior: "instant"
797
809
  });
798
810
  }
799
- return /* @__PURE__ */ y("div", {
800
- ...d({ className: "x9vvk8s x12h1iku xeuugli xbixft x1hz01jw xtqrqnz x1778rvt" }, s),
801
- children: /* @__PURE__ */ b("div", {
811
+ return /* @__PURE__ */ b("div", {
812
+ ...f({ className: "x9vvk8s x12h1iku xeuugli xbixft x1hz01jw xtqrqnz x1778rvt" }, s),
813
+ children: /* @__PURE__ */ x("div", {
802
814
  ref: c,
803
815
  className: "xrvj5dj x4ruv2j x1y7acmc x7a106z x1j825kq xeuugli",
804
- children: [/* @__PURE__ */ y("div", {
816
+ children: [/* @__PURE__ */ b("div", {
805
817
  ref: l,
806
818
  role: "group",
807
819
  "aria-label": i,
808
820
  tabIndex: -1,
809
821
  className: "xeuugli",
810
822
  children: t
811
- }), /* @__PURE__ */ b("aside", {
823
+ }), /* @__PURE__ */ x("aside", {
812
824
  ref: u,
813
825
  "aria-label": r,
814
826
  tabIndex: -1,
815
827
  className: "x7wzq59 x7cfggw xqfmuo8 xeuugli x1sbza1b xhuqrux xexx8yu xdz7uhd xpilrb4 xdctr63 x1t7ytsu x97x49r x972fbf x1mg79u0 x13fuv20 xhjagg4 x14ijc3v x13qnu6 x9v5kkp x19rmrnh x12ijfkc",
816
- children: [/* @__PURE__ */ y("div", {
828
+ children: [/* @__PURE__ */ b("div", {
817
829
  className: "x1s85apg x1yamub6 x1xxlxpq",
818
- children: /* @__PURE__ */ b(e, {
830
+ children: /* @__PURE__ */ x(e, {
819
831
  variant: "ghost",
820
- onClick: f,
832
+ onClick: d,
821
833
  children: ["Back to ", i.toLowerCase()]
822
834
  })
823
835
  }), n]
@@ -825,15 +837,15 @@ function G({ master: t, detail: n, label: r, masterLabel: i, revealKey: a, retur
825
837
  })
826
838
  });
827
839
  }
828
- function K({ items: e, ...t }) {
829
- return /* @__PURE__ */ y("dl", {
830
- ...d({ className: "x1ghz6dp xrvj5dj xezdspq x1i3977y xuytk5h x1hz01jw xvmahel xtqrqnz x1778rvt" }, t),
831
- children: e.map(({ label: e, value: t }) => /* @__PURE__ */ b("div", {
840
+ function q({ items: e, ...t }) {
841
+ return /* @__PURE__ */ b("dl", {
842
+ ...f({ className: "x1ghz6dp xrvj5dj xezdspq x1i3977y xuytk5h x1hz01jw xvmahel xtqrqnz x1778rvt" }, t),
843
+ children: e.map(({ label: e, value: t }) => /* @__PURE__ */ x("div", {
832
844
  className: "xjp7ctv",
833
- children: [/* @__PURE__ */ y("dt", {
845
+ children: [/* @__PURE__ */ b("dt", {
834
846
  className: "xeuugli x153jb6y xj0a0fe",
835
847
  children: e
836
- }), /* @__PURE__ */ y("dd", {
848
+ }), /* @__PURE__ */ b("dd", {
837
849
  className: "xeuugli x1ghz6dp xbixft xj0a0fe xss6m8b",
838
850
  children: t
839
851
  })]
@@ -841,20 +853,20 @@ function K({ items: e, ...t }) {
841
853
  });
842
854
  }
843
855
  // packages/collections/src/list-footer.tsx
844
- function q({ children: e, actions: t, ...n }) {
845
- return /* @__PURE__ */ b("div", {
846
- ...d({ className: "x78zum5 x6s0dn4 x1qughib x1a02dak xeuugli x1n8ia3y x1qokhjc x1m92p3w x178xt8z x13fuv20 xhjagg4 x153jb6y x1hz01jw xvmahel xtqrqnz x1778rvt" }, n),
847
- children: [/* @__PURE__ */ y("div", {
856
+ function J({ children: e, actions: t, ...n }) {
857
+ return /* @__PURE__ */ x("div", {
858
+ ...f({ className: "x78zum5 x6s0dn4 x1qughib x1a02dak xeuugli x1n8ia3y x1qokhjc x1m92p3w x178xt8z x13fuv20 xhjagg4 x153jb6y x1hz01jw xvmahel xtqrqnz x1778rvt" }, n),
859
+ children: [/* @__PURE__ */ b("div", {
848
860
  className: "xeuugli xj0a0fe",
849
861
  children: e
850
- }), t != null && /* @__PURE__ */ y("div", {
862
+ }), t != null && /* @__PURE__ */ b("div", {
851
863
  className: "x78zum5 x6s0dn4 x1a02dak x1hnptsi xeuugli",
852
864
  children: t
853
865
  })]
854
866
  });
855
867
  }
856
868
  // packages/collections/src/metrics.tsx
857
- var J = {
869
+ var Y = {
858
870
  grid: {
859
871
  k1xSpc: "x78zum5",
860
872
  kwnvtZ: "x1a02dak",
@@ -872,160 +884,84 @@ var J = {
872
884
  kogj98: "x1ghz6dp",
873
885
  $$css: !0
874
886
  }
875
- }, xe = {
876
- inline: J.grid,
877
- columns: J.columns
887
+ }, X = {
888
+ inline: Y.grid,
889
+ columns: Y.columns
878
890
  };
879
- function Y({ layout: e = "inline", ...t }) {
880
- return /* @__PURE__ */ y("dl", { ...d(f.props(xe[e]), t) });
891
+ function Z({ layout: e = "inline", ...t }) {
892
+ return /* @__PURE__ */ b("dl", { ...f(p.props(X[e]), t) });
881
893
  }
882
- function X({ label: e, value: t, ...n }) {
883
- return /* @__PURE__ */ b("div", {
884
- ...d({ className: "x3nfvp2 x1pha0wt x1a02dak xunmzkg xeuugli x1hz01jw xvmahel xtqrqnz x1778rvt" }, n),
885
- children: [/* @__PURE__ */ y("dt", {
894
+ function Te({ label: e, value: t, ...n }) {
895
+ return /* @__PURE__ */ x("div", {
896
+ ...f({ className: "x3nfvp2 x1pha0wt x1a02dak xunmzkg xeuugli x1hz01jw xvmahel xtqrqnz x1778rvt" }, n),
897
+ children: [/* @__PURE__ */ b("dt", {
886
898
  className: "xeuugli x153jb6y x9ek82g xj0a0fe",
887
899
  children: e
888
- }), /* @__PURE__ */ y("dd", {
900
+ }), /* @__PURE__ */ b("dd", {
889
901
  className: "xeuugli x1ghz6dp xbixft xk4h15q xss6m8b xj0a0fe",
890
902
  children: t
891
903
  })]
892
904
  });
893
905
  }
894
- // packages/collections/src/table.tsx
895
- var Se = {
896
- kzqmXN: "x11ymkkh x2ipgtl",
897
- $$css: !0
898
- }, Z = {
899
- secondary: {
900
- k1xSpc: "x1n9xxwz xazwdyr",
901
- $$css: !0
902
- },
903
- column: (e) => [Se, { "--x-1xmrurk": ((e) => typeof e == "number" ? e + "px" : e ?? void 0)(`${e}%`) }],
904
- th: {
905
- kVAEAm: "x1n2onr6",
906
- kZKoxP: "x24vdcc",
907
- kB7OPa: "x9f619",
908
- k8WAf4: "xt970qd",
909
- kg3NbH: "x1dc62k6",
910
- kWkggS: "xpvm0e4",
911
- kMwMTN: "x153jb6y",
912
- kGuDYH: "xy8obcc",
913
- k63SB2: "xj57cvi",
914
- kLWn49: "xas2l8k",
915
- khDVqt: "xuxw1ft",
916
- k5JduY: "x1s928wv",
917
- kwXMNM: "x1j6awrg",
918
- kLxBhq: "xnbfe2x",
919
- k3foIR: "xxb5w0g",
920
- k4zj60: "x1a5uphr",
921
- kkgrvl: "xv6d0c5",
922
- ks3ayO: "xtccgxd",
923
- $$css: !0
924
- },
925
- lastHeader: {
926
- kc3QkE: "x1h1zc6f",
927
- $$css: !0
928
- },
929
- lastPrimaryHeader: {
930
- kc3QkE: "x1f72eer",
931
- $$css: !0
932
- }
933
- };
934
- function Ce({ headers: e, children: t, label: n, ...r }) {
935
- let i = e.findLastIndex((e) => typeof e == "string" || e.secondary !== !0);
936
- return /* @__PURE__ */ y("div", {
937
- role: "region",
938
- "aria-label": n,
939
- tabIndex: 0,
940
- className: "xeuugli xh8yej3 xw2csxc x1t137rt x13qnu6 x9v5kkp x19rmrnh x1bqaal",
941
- children: /* @__PURE__ */ b("table", {
942
- ...d({ "aria-label": n }, {
943
- 0: { className: "xh8yej3 x1mwwwfo xpvm0e4 x1hz01jw xvmahel xtqrqnz x1778rvt xdpxx8g" },
944
- 1: { className: "xh8yej3 x1mwwwfo xpvm0e4 x1hz01jw xvmahel xtqrqnz x1778rvt xdpxx8g x140o2bo" }
945
- }[!!e.some((e) => typeof e != "string") | 0], r),
946
- children: [/* @__PURE__ */ y("thead", { children: /* @__PURE__ */ y("tr", { children: e.map((t, n) => /* @__PURE__ */ y("th", {
947
- scope: "col",
948
- ...f.props(Z.th, typeof t != "string" && Z.column(t.width), typeof t != "string" && t.secondary === !0 && Z.secondary, n === e.length - 1 && Z.lastHeader, n === i && Z.lastPrimaryHeader),
949
- children: /* @__PURE__ */ y("span", {
950
- title: typeof t == "string" ? t : t.label,
951
- className: "x1lliihq xb3r6kr xlyipyv",
952
- children: typeof t == "string" ? t : t.label
953
- })
954
- }, typeof t == "string" ? t : t.label)) }) }), /* @__PURE__ */ y("tbody", { children: t })]
955
- })
956
- });
957
- }
958
- function Q({ children: e, secondary: t = !1, mobileLabel: n, ...r }) {
959
- return /* @__PURE__ */ b("td", {
960
- ...d({
961
- 0: { className: "x1v2how9 x9f619 x1hmw7ec x1dc62k6 xbixft xxymvpz xuxw1ft xss6m8b xb3r6kr xlyipyv" },
962
- 1: { className: "x1v2how9 x9f619 x1hmw7ec x1dc62k6 xbixft xxymvpz xuxw1ft xss6m8b xb3r6kr xlyipyv x1n9xxwz xazwdyr" }
963
- }[!!t | 0], r),
964
- children: [e, n !== void 0 && /* @__PURE__ */ y("small", {
965
- className: "x1s85apg xacuhyv x153jb6y xy8obcc xas2l8k xb3r6kr xlyipyv",
966
- children: n
967
- })]
968
- });
969
- }
970
906
  // packages/collections/src/timestamp.tsx
971
- function $({ dateTime: e, label: t, title: n }) {
972
- return n === void 0 ? /* @__PURE__ */ y("time", {
907
+ function Q({ dateTime: e, label: t, title: n }) {
908
+ return n === void 0 ? /* @__PURE__ */ b("time", {
973
909
  dateTime: e,
974
910
  className: "x1hz01jw xy8obcc xas2l8k x153jb6y xss6m8b xj0a0fe x13qnu6 x9v5kkp x19rmrnh x7s97pk",
975
911
  children: t
976
- }) : /* @__PURE__ */ b(s.Root, { children: [/* @__PURE__ */ y(s.Trigger, {
977
- render: /* @__PURE__ */ y("time", {
912
+ }) : /* @__PURE__ */ x(s.Root, { children: [/* @__PURE__ */ b(s.Trigger, {
913
+ render: /* @__PURE__ */ b("time", {
978
914
  dateTime: e,
979
915
  tabIndex: 0,
980
916
  "aria-label": n,
981
917
  className: "x1hz01jw xy8obcc xas2l8k x153jb6y xss6m8b xj0a0fe x13qnu6 x9v5kkp x19rmrnh x7s97pk"
982
918
  }),
983
919
  children: t
984
- }), /* @__PURE__ */ y(s.Portal, { children: /* @__PURE__ */ y(s.Positioner, { children: /* @__PURE__ */ y(s.Popup, { children: n }) }) })] });
920
+ }), /* @__PURE__ */ b(s.Portal, { children: /* @__PURE__ */ b(s.Positioner, { children: /* @__PURE__ */ b(s.Popup, { children: n }) }) })] });
985
921
  }
986
922
  // packages/collections/src/timeline.tsx
987
- function we({ label: e, children: t }) {
988
- return /* @__PURE__ */ y("ol", {
923
+ function Ee({ label: e, children: t }) {
924
+ return /* @__PURE__ */ b("ol", {
989
925
  "aria-label": e,
990
926
  className: "xe8uvvx x1ghz6dp x1717udv xeuugli",
991
927
  children: t
992
928
  });
993
929
  }
994
- function Te({ icon: e, title: t, time: n, metadata: i, children: a, details: o, defaultOpen: s = !1 }) {
995
- let [c, l] = _(s), u = /* @__PURE__ */ b("div", {
930
+ function $({ icon: e, title: t, time: n, metadata: i, children: a, details: o, defaultOpen: s = !1 }) {
931
+ let [c, l] = v(s), u = /* @__PURE__ */ x("div", {
996
932
  className: "x78zum5 x1pha0wt x1hnptsi x1a02dak xeuugli",
997
- children: [/* @__PURE__ */ y("div", {
933
+ children: [/* @__PURE__ */ b("div", {
998
934
  className: "xeuugli xk4h15q xj0a0fe",
999
- children: o === void 0 ? t : /* @__PURE__ */ y(r.Trigger, {
1000
- className: "x14atkfc x16exltd xwu7q15 xt970qd xlqzeqv",
935
+ children: o === void 0 ? t : /* @__PURE__ */ b(r.Trigger, {
936
+ className: "x14atkfc x16exltd x17oiadl xt970qd xlqzeqv",
1001
937
  children: t
1002
938
  })
1003
- }), n != null && /* @__PURE__ */ y("div", {
939
+ }), n != null && /* @__PURE__ */ b("div", {
1004
940
  className: "xeuugli x153jb6y xy8obcc xas2l8k xss6m8b xj0a0fe",
1005
941
  children: n
1006
942
  })]
1007
- }), d = /* @__PURE__ */ b(v, { children: [
943
+ }), d = /* @__PURE__ */ x(y, { children: [
1008
944
  u,
1009
- a != null && (!c || o === void 0) && /* @__PURE__ */ y("div", {
945
+ a != null && (!c || o === void 0) && /* @__PURE__ */ b("div", {
1010
946
  className: "xeuugli x1ewvobj xj0a0fe",
1011
947
  children: a
1012
948
  }),
1013
- i != null && /* @__PURE__ */ y("div", {
949
+ i != null && /* @__PURE__ */ b("div", {
1014
950
  className: "xeuugli x153jb6y xy8obcc xas2l8k xj0a0fe",
1015
951
  children: i
1016
952
  }),
1017
- o !== void 0 && /* @__PURE__ */ y(r.Panel, { children: o })
953
+ o !== void 0 && /* @__PURE__ */ b(r.Panel, { children: o })
1018
954
  ] });
1019
- return /* @__PURE__ */ b("li", {
955
+ return /* @__PURE__ */ x("li", {
1020
956
  className: "x1n2onr6 xrvj5dj x1eqwfih x1y1mm1b xhlx3wy xeuugli x1hz01jw xvmahel xtqrqnz x1778rvt xbixft x1cpjm7i x1hmns74 x1lk18uv x1gi6gvw x1jw5pjq x1vgi0k x1mi36wk x1wse844 xup0pd7",
1021
- children: [/* @__PURE__ */ y("span", {
957
+ children: [/* @__PURE__ */ b("span", {
1022
958
  "aria-hidden": !0,
1023
959
  className: "x78zum5 x6s0dn4 xl56j7k x1b1e0sl x153jb6y",
1024
960
  children: e
1025
- }), o === void 0 ? /* @__PURE__ */ y("div", {
961
+ }), o === void 0 ? /* @__PURE__ */ b("div", {
1026
962
  className: "xrvj5dj x1hnptsi xeuugli",
1027
963
  children: d
1028
- }) : /* @__PURE__ */ y(r.Root, {
964
+ }) : /* @__PURE__ */ b(r.Root, {
1029
965
  open: c,
1030
966
  onOpenChange: l,
1031
967
  className: "xrvj5dj x1hnptsi xeuugli xh8yej3",
@@ -1033,8 +969,8 @@ function Te({ icon: e, title: t, time: n, metadata: i, children: a, details: o,
1033
969
  })]
1034
970
  });
1035
971
  }
1036
- var Ee = {
1037
- Root: we,
1038
- Item: Te
972
+ var De = {
973
+ Root: Ee,
974
+ Item: $
1039
975
  };
1040
- export { Q as Cell, ye as CollectionEnd, A as CollectionPagination, be as CollectionScroll, D as CollectionToolbar, k as ColumnControls, V as DataTable, L as DataTablePlaceholder, z as DataTableText, B as DataTableTextPlaceholder, K as Details, O as FilterChips, G as Inspector, q as ListFooter, X as Metric, Y as MetricGrid, Ce as Table, Ee as Timeline, $ as Timestamp };
976
+ export { we as CollectionEnd, ue as CollectionPagination, W as CollectionScroll, O as CollectionToolbar, Se as DataTable, R as DataTablePlaceholder, B as DataTableText, V as DataTableTextPlaceholder, q as Details, A as DisplayOptions, k as FilterChips, K as Inspector, J as ListFooter, Te as Metric, Z as MetricGrid, De as Timeline, Q as Timestamp };