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