@mechane-ai/elements 0.12.0 → 0.13.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.
- package/README.md +15 -0
- package/dist/ai.js +167 -140
- package/dist/{categorical-values-CTrHn9jH.js → categorical-values-DwobbjBq.js} +2 -2
- package/dist/{chart-frame-38ES6kwK.js → chart-frame-DAxsgMyl.js} +1 -1
- package/dist/{chart-input-C9fu7f1Q.js → chart-input-B0snxbMH.js} +2 -2
- package/dist/charts/cartesian.js +6 -6
- package/dist/charts/distribution.js +2 -2
- package/dist/charts/graph.js +2 -2
- package/dist/charts/hierarchy.js +3 -3
- package/dist/charts/matrix.js +2 -2
- package/dist/charts/timeline.js +2 -2
- package/dist/charts.js +1 -1
- package/dist/{code-block-BjV2EFZS.js → code-block-VwrOHz5j.js} +1 -1
- package/dist/collections.js +282 -199
- package/dist/content/code.js +1 -1
- package/dist/content/diff.js +2 -2
- package/dist/content/link.js +1 -1
- package/dist/content/markdown.js +2 -2
- package/dist/content/tree.js +2 -2
- package/dist/{content-link-C460m-O7.js → content-link-Oj-MtNYi.js} +1 -1
- package/dist/content.js +3 -3
- package/dist/elements.css +8 -16
- package/dist/feedback.js +1 -1
- package/dist/forms/dates.js +1 -1
- package/dist/forms.js +1 -1
- package/dist/index.js +1 -1
- package/dist/layout.js +1 -1
- package/dist/navigation/commands.js +1 -1
- package/dist/navigation.js +26 -12
- package/dist/packages/ai/src/index.d.ts +2 -2
- package/dist/packages/ai/src/prompt-input.d.ts +4 -0
- package/dist/packages/collections/src/data-table.d.ts +19 -2
- package/dist/packages/collections/src/index.d.ts +2 -2
- package/dist/packages/feedback/src/async-region.d.ts +15 -9
- package/dist/packages/feedback/src/control-placeholders.d.ts +8 -3
- package/dist/packages/feedback/src/index.d.ts +2 -3
- package/dist/packages/foundations/src/control-styles.d.ts +21 -0
- package/dist/packages/foundations/src/tokens.stylex.d.ts +5 -0
- package/dist/packages/navigation/src/index.d.ts +2 -2
- package/dist/packages/navigation/src/page-navigation.d.ts +5 -0
- package/dist/{pierre-tree-DKN2eGlZ.js → pierre-tree-Db1yaDM2.js} +2 -2
- package/dist/{src-CI6KtN2w.js → src-B0UTwpOz.js} +339 -364
- package/dist/{src-3gzujMhN.js → src-BNlyCwOr.js} +21 -7
- package/dist/{src-DOzle5d4.js → src-DMsnWyru.js} +155 -170
- package/dist/tokens.js +8 -4
- package/package.json +1 -1
- package/packages/foundations/src/tokens.stylex.ts +2 -0
- package/dist/packages/feedback/src/loading.d.ts +0 -7
package/dist/collections.js
CHANGED
|
@@ -1,22 +1,23 @@
|
|
|
1
|
-
import { C as e, c as t, f as n, g as r, w as i } from "./src-
|
|
2
|
-
import { r as a } from "./src-
|
|
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
3
|
import { r as o, t as s } from "./src-CVlgjAlw.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
8
|
-
import
|
|
4
|
+
import { d as c } from "./src-B0UTwpOz.js";
|
|
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";
|
|
9
10
|
import { Fragment as v, jsx as y, jsxs as b } from "react/jsx-runtime";
|
|
10
|
-
import { ArrowDown as
|
|
11
|
-
import { createColumnHelper as
|
|
12
|
-
import { defaultRangeExtractor as
|
|
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";
|
|
13
14
|
// packages/collections/src/collection-controls.tsx
|
|
14
15
|
var E = { remove: {
|
|
15
16
|
kmuXW: "x2lah0s",
|
|
16
17
|
$$css: !0
|
|
17
18
|
} };
|
|
18
19
|
function D({ label: e, children: t, actions: n }) {
|
|
19
|
-
let r =
|
|
20
|
+
let r = p.toArray(t).length > 0, i = p.toArray(n).length > 0;
|
|
20
21
|
return !r && !i ? null : /* @__PURE__ */ b("div", {
|
|
21
22
|
role: "group",
|
|
22
23
|
"aria-label": e,
|
|
@@ -104,8 +105,8 @@ function A({ description: n, previous: r, next: i }) {
|
|
|
104
105
|
});
|
|
105
106
|
}
|
|
106
107
|
// packages/collections/src/use-end-reached.ts
|
|
107
|
-
function
|
|
108
|
-
|
|
108
|
+
function le({ end: e, viewport: t, onEndReached: n, content: r }) {
|
|
109
|
+
m(() => {
|
|
109
110
|
if (n === void 0 || e.current === null) return;
|
|
110
111
|
let r = new IntersectionObserver((e) => {
|
|
111
112
|
e.some((e) => e.isIntersecting) && n();
|
|
@@ -119,11 +120,11 @@ function j({ end: e, viewport: t, onEndReached: n, content: r }) {
|
|
|
119
120
|
]);
|
|
120
121
|
}
|
|
121
122
|
// packages/collections/src/data-table.tsx
|
|
122
|
-
var
|
|
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 = {
|
|
123
124
|
kmVPX3: "x1717udv",
|
|
124
125
|
kMzoRj: "xc342km",
|
|
125
126
|
$$css: !0
|
|
126
|
-
},
|
|
127
|
+
}, j = {
|
|
127
128
|
frame: {
|
|
128
129
|
k7Eaqz: "xeuugli",
|
|
129
130
|
kMv6JI: "x1hz01jw",
|
|
@@ -135,6 +136,10 @@ var ce = T({}), le = 76, ue = "a, button, input, select, textarea, label, summar
|
|
|
135
136
|
$$css: !0
|
|
136
137
|
},
|
|
137
138
|
content: { $$css: !0 },
|
|
139
|
+
placeholder: {
|
|
140
|
+
kfzvcC: "x47corl",
|
|
141
|
+
$$css: !0
|
|
142
|
+
},
|
|
138
143
|
fillFrame: {
|
|
139
144
|
k1xSpc: "x78zum5",
|
|
140
145
|
kXwgrk: "xdt5ytf",
|
|
@@ -242,14 +247,14 @@ var ce = T({}), le = 76, ue = "a, button, input, select, textarea, label, summar
|
|
|
242
247
|
$$css: !0
|
|
243
248
|
},
|
|
244
249
|
spacer: (e) => [
|
|
245
|
-
|
|
250
|
+
me,
|
|
246
251
|
{
|
|
247
252
|
kZKoxP: e == null ? e : "x16ye13r",
|
|
248
253
|
$$css: !0
|
|
249
254
|
},
|
|
250
255
|
{ "--x-height": ((e) => typeof e == "number" ? e + "px" : e ?? void 0)(e) }
|
|
251
256
|
]
|
|
252
|
-
},
|
|
257
|
+
}, M = {
|
|
253
258
|
primary: {
|
|
254
259
|
minimumWidth: 240,
|
|
255
260
|
flexible: !0,
|
|
@@ -280,186 +285,264 @@ var ce = T({}), le = 76, ue = "a, button, input, select, textarea, label, summar
|
|
|
280
285
|
flexible: !1,
|
|
281
286
|
truncate: !1
|
|
282
287
|
}
|
|
283
|
-
}, pe = {
|
|
284
|
-
fixed: N.content,
|
|
285
|
-
content: N.contentCell
|
|
286
|
-
}, me = {
|
|
287
|
-
primary: N.start,
|
|
288
|
-
text: N.start,
|
|
289
|
-
status: N.start,
|
|
290
|
-
number: N.end,
|
|
291
|
-
timestamp: N.end,
|
|
292
|
-
actions: N.end
|
|
293
288
|
}, he = {
|
|
294
|
-
|
|
295
|
-
|
|
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
|
|
296
298
|
}, ge = {
|
|
297
|
-
content:
|
|
298
|
-
fill:
|
|
299
|
+
content: j.content,
|
|
300
|
+
fill: j.fillFrame
|
|
301
|
+
}, P = {
|
|
302
|
+
content: j.content,
|
|
303
|
+
fill: j.fillViewport
|
|
299
304
|
};
|
|
300
|
-
function
|
|
305
|
+
function F(e) {
|
|
306
|
+
return e.map((e) => {
|
|
307
|
+
let t = M[e.role], n = e.width ?? (t.flexible ? void 0 : t.minimumWidth);
|
|
308
|
+
return {
|
|
309
|
+
...e,
|
|
310
|
+
...n === void 0 ? {} : { width: n }
|
|
311
|
+
};
|
|
312
|
+
});
|
|
313
|
+
}
|
|
314
|
+
function I(e, t = 0) {
|
|
315
|
+
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)
|
|
318
|
+
};
|
|
319
|
+
}
|
|
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))] });
|
|
322
|
+
}
|
|
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", {
|
|
326
|
+
"aria-hidden": !0,
|
|
327
|
+
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)),
|
|
333
|
+
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", {
|
|
340
|
+
className: "x1lliihq xeuugli xb3r6kr xlyipyv xuxw1ft",
|
|
341
|
+
children: e.label
|
|
342
|
+
})
|
|
343
|
+
}, e.id)) })
|
|
344
|
+
}),
|
|
345
|
+
/* @__PURE__ */ y("tbody", { children: [
|
|
346
|
+
"first",
|
|
347
|
+
"second",
|
|
348
|
+
"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, {
|
|
354
|
+
role: e.role,
|
|
355
|
+
fixed: n === "fixed",
|
|
356
|
+
truncate: void 0,
|
|
357
|
+
children: e.placeholder ?? /* @__PURE__ */ y(c, { width: "60%" })
|
|
358
|
+
})
|
|
359
|
+
}, e.id))
|
|
360
|
+
}, e)) })
|
|
361
|
+
]
|
|
362
|
+
})
|
|
363
|
+
})
|
|
364
|
+
});
|
|
365
|
+
}
|
|
366
|
+
function R({ children: e, leading: t, decorative: n = !1 }) {
|
|
301
367
|
return /* @__PURE__ */ b("span", {
|
|
368
|
+
"aria-hidden": n || void 0,
|
|
369
|
+
inert: n || void 0,
|
|
302
370
|
className: "x78zum5 x6s0dn4 x1n8ia3y xeuugli xh8yej3",
|
|
303
|
-
children: [
|
|
371
|
+
children: [t !== void 0 && /* @__PURE__ */ y("span", {
|
|
304
372
|
"aria-hidden": !0,
|
|
305
373
|
className: "x3nfvp2 x6s0dn4 x2lah0s",
|
|
306
|
-
children:
|
|
307
|
-
}), /* @__PURE__ */
|
|
374
|
+
children: t
|
|
375
|
+
}), /* @__PURE__ */ y("span", {
|
|
308
376
|
className: "x98rzlu xeuugli",
|
|
309
|
-
children:
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
377
|
+
children: e
|
|
378
|
+
})]
|
|
379
|
+
});
|
|
380
|
+
}
|
|
381
|
+
function z({ children: e, secondary: t, leading: n, trailing: r }) {
|
|
382
|
+
return /* @__PURE__ */ b(R, {
|
|
383
|
+
leading: n,
|
|
384
|
+
children: [/* @__PURE__ */ b("span", {
|
|
385
|
+
className: "x78zum5 x6s0dn4 x1hnptsi xeuugli",
|
|
386
|
+
children: [/* @__PURE__ */ y("span", {
|
|
387
|
+
title: e,
|
|
388
|
+
className: "x1lliihq xeuugli x14atkfc xs83m0k xb3r6kr xuxw1ft xlyipyv",
|
|
389
|
+
children: e
|
|
390
|
+
}), r != null && /* @__PURE__ */ y("span", {
|
|
391
|
+
className: "x3nfvp2 x6s0dn4 x2lah0s",
|
|
392
|
+
children: r
|
|
323
393
|
})]
|
|
394
|
+
}), t !== void 0 && /* @__PURE__ */ y("span", {
|
|
395
|
+
title: t,
|
|
396
|
+
className: "x1lliihq xeuugli xh8yej3 xb3r6kr xuxw1ft xlyipyv x153jb6y xy8obcc xas2l8k",
|
|
397
|
+
children: t
|
|
324
398
|
})]
|
|
325
399
|
});
|
|
326
400
|
}
|
|
327
|
-
function
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
}
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
401
|
+
function B({ leading: e, secondary: t = !1 }) {
|
|
402
|
+
return /* @__PURE__ */ b(R, {
|
|
403
|
+
leading: e,
|
|
404
|
+
decorative: !0,
|
|
405
|
+
children: [/* @__PURE__ */ y("span", {
|
|
406
|
+
className: "x1lliihq xeuugli xh8yej3",
|
|
407
|
+
children: /* @__PURE__ */ y(c, { width: "70%" })
|
|
408
|
+
}), t && /* @__PURE__ */ y("span", {
|
|
409
|
+
className: "x1lliihq xeuugli xh8yej3 x153jb6y xy8obcc xas2l8k",
|
|
410
|
+
children: /* @__PURE__ */ y(c, { width: "45%" })
|
|
411
|
+
})]
|
|
412
|
+
});
|
|
413
|
+
}
|
|
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();
|
|
417
|
+
return e.columns(A.map((t) => e.display({
|
|
338
418
|
id: t.id,
|
|
339
419
|
header: t.label
|
|
340
420
|
})));
|
|
341
|
-
}, [
|
|
342
|
-
features:
|
|
343
|
-
columns:
|
|
421
|
+
}, [A]), M = oe({
|
|
422
|
+
features: ue,
|
|
423
|
+
columns: me,
|
|
344
424
|
data: e,
|
|
345
425
|
getRowId: n
|
|
346
|
-
}),
|
|
347
|
-
|
|
348
|
-
if (
|
|
349
|
-
|
|
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(() => {
|
|
428
|
+
if (S === void 0) {
|
|
429
|
+
K.current = void 0;
|
|
350
430
|
return;
|
|
351
431
|
}
|
|
352
|
-
if (
|
|
353
|
-
let e =
|
|
432
|
+
if (K.current === S) return;
|
|
433
|
+
let e = L.current?.querySelector(`[data-row-id="${CSS.escape(S)}"] [data-row-action]`);
|
|
354
434
|
if (e == null) return;
|
|
355
435
|
let t = requestAnimationFrame(() => {
|
|
356
|
-
e.focus({ preventScroll: !0 }),
|
|
436
|
+
e.focus({ preventScroll: !0 }), K.current = S;
|
|
357
437
|
});
|
|
358
438
|
return () => cancelAnimationFrame(t);
|
|
359
|
-
}, [e,
|
|
360
|
-
end:
|
|
361
|
-
onEndReached:
|
|
439
|
+
}, [e, S]), le({
|
|
440
|
+
end: R,
|
|
441
|
+
onEndReached: E === void 0 ? O : void 0,
|
|
362
442
|
content: e.length
|
|
363
|
-
}),
|
|
364
|
-
let e =
|
|
365
|
-
if (
|
|
366
|
-
let n = new ResizeObserver(() =>
|
|
443
|
+
}), m(() => {
|
|
444
|
+
let e = z.current, t = B.current;
|
|
445
|
+
if (E === void 0 || e === null || t === null) return;
|
|
446
|
+
let n = new ResizeObserver(() => ye(e.offsetHeight + t.offsetHeight));
|
|
367
447
|
return n.observe(e), n.observe(t), () => n.disconnect();
|
|
368
448
|
}, [
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
449
|
+
E,
|
|
450
|
+
C,
|
|
451
|
+
w
|
|
372
452
|
]);
|
|
373
|
-
let
|
|
453
|
+
let X = ce({
|
|
374
454
|
count: e.length,
|
|
375
|
-
enabled:
|
|
376
|
-
getScrollElement: () =>
|
|
455
|
+
enabled: E !== void 0,
|
|
456
|
+
getScrollElement: () => L.current,
|
|
377
457
|
getItemKey: (t) => {
|
|
378
458
|
let r = e[t];
|
|
379
459
|
if (r === void 0) throw RangeError("The virtual row is outside the supplied table page.");
|
|
380
460
|
return n(r);
|
|
381
461
|
},
|
|
382
|
-
estimateSize: () =>
|
|
383
|
-
scrollMargin:
|
|
384
|
-
scrollPaddingStart:
|
|
462
|
+
estimateSize: () => T === "fixed" ? u.rowHeight : E?.estimatedRowHeight ?? u.rowHeight,
|
|
463
|
+
scrollMargin: V,
|
|
464
|
+
scrollPaddingStart: V,
|
|
385
465
|
overscan: 6,
|
|
386
466
|
rangeExtractor: (t) => {
|
|
387
|
-
let n =
|
|
388
|
-
return
|
|
467
|
+
let n = se(t);
|
|
468
|
+
return q === -1 ? n : [.../* @__PURE__ */ new Set([
|
|
389
469
|
...n,
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
470
|
+
q - 1,
|
|
471
|
+
q,
|
|
472
|
+
q + 1
|
|
393
473
|
])].filter((t) => t >= 0 && t < e.length).toSorted((e, t) => e - t);
|
|
394
474
|
}
|
|
395
|
-
}),
|
|
475
|
+
}), Se = E === void 0 ? M.getRowModel().rows.map((e, t) => ({
|
|
396
476
|
row: e,
|
|
397
477
|
index: t,
|
|
398
478
|
spacerHeight: 0
|
|
399
|
-
})) :
|
|
400
|
-
let r =
|
|
479
|
+
})) : X.getVirtualItems().flatMap((e, t, n) => {
|
|
480
|
+
let r = M.getRowModel().rows[e.index];
|
|
401
481
|
return r === void 0 ? [] : [{
|
|
402
482
|
row: r,
|
|
403
483
|
index: e.index,
|
|
404
|
-
spacerHeight: e.start - (n[t - 1]?.end ??
|
|
484
|
+
spacerHeight: e.start - (n[t - 1]?.end ?? V)
|
|
405
485
|
}];
|
|
406
|
-
}),
|
|
407
|
-
|
|
408
|
-
|
|
486
|
+
}), Z = E !== void 0 && (e.length === 0 || X.range?.endIndex === e.length - 1);
|
|
487
|
+
m(() => {
|
|
488
|
+
Z && O?.();
|
|
409
489
|
}, [
|
|
410
|
-
|
|
411
|
-
|
|
490
|
+
Z,
|
|
491
|
+
O,
|
|
412
492
|
e.length
|
|
413
|
-
]),
|
|
414
|
-
if (
|
|
415
|
-
let e = Array.from(
|
|
416
|
-
e != null && (e.focus({ preventScroll:
|
|
493
|
+
]), h(() => {
|
|
494
|
+
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]");
|
|
496
|
+
e != null && (e.focus({ preventScroll: E !== void 0 }), G.current = void 0);
|
|
417
497
|
});
|
|
418
|
-
function
|
|
498
|
+
function Ce(t, r) {
|
|
419
499
|
let i = t.metaKey || t.ctrlKey, a = t.altKey || t.shiftKey;
|
|
420
500
|
if (i || a) return;
|
|
421
|
-
let o =
|
|
501
|
+
let o = pe.get(t.key);
|
|
422
502
|
if (o === void 0) return;
|
|
423
503
|
t.preventDefault();
|
|
424
504
|
let s = r + o, c = e[s];
|
|
425
|
-
c !== void 0 && (
|
|
505
|
+
c !== void 0 && (G.current = n(c), W(G.current), E !== void 0 && X.scrollToIndex(s, { align: "auto" }));
|
|
426
506
|
}
|
|
427
|
-
let
|
|
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;
|
|
428
508
|
return /* @__PURE__ */ b("div", {
|
|
429
|
-
...
|
|
509
|
+
...f.props(j.frame, ge[Y]),
|
|
430
510
|
children: [/* @__PURE__ */ b("div", {
|
|
431
|
-
ref:
|
|
511
|
+
ref: L,
|
|
432
512
|
role: "region",
|
|
433
513
|
"aria-label": r,
|
|
434
514
|
tabIndex: 0,
|
|
435
|
-
...
|
|
515
|
+
...f.props(j.viewport, P[Y], typeof E?.height == "number" && j.virtual(E.height)),
|
|
436
516
|
children: [/* @__PURE__ */ b("table", {
|
|
437
|
-
"aria-rowcount":
|
|
438
|
-
...
|
|
517
|
+
"aria-rowcount": E === void 0 ? void 0 : Math.max(1, e.length) + 1,
|
|
518
|
+
...f.props(j.table, j.fixed, j.minimumWidth(Te, Ee)),
|
|
439
519
|
children: [
|
|
440
520
|
/* @__PURE__ */ y("caption", {
|
|
441
|
-
ref:
|
|
442
|
-
...
|
|
521
|
+
ref: z,
|
|
522
|
+
...f.props(j.caption, C && l.hidden),
|
|
443
523
|
children: r
|
|
444
524
|
}),
|
|
445
|
-
/* @__PURE__ */
|
|
525
|
+
/* @__PURE__ */ y(_e, {
|
|
526
|
+
columns: A,
|
|
527
|
+
selectable: c !== void 0
|
|
528
|
+
}),
|
|
446
529
|
/* @__PURE__ */ y("thead", {
|
|
447
|
-
ref:
|
|
448
|
-
...
|
|
449
|
-
children: /* @__PURE__ */ b("tr", { children: [
|
|
530
|
+
ref: B,
|
|
531
|
+
...f.props(w && l.hidden),
|
|
532
|
+
children: /* @__PURE__ */ b("tr", { children: [c !== void 0 && /* @__PURE__ */ y("th", {
|
|
450
533
|
scope: "col",
|
|
451
534
|
className: "x9f619 x7wzq59 x13vifvy x4k8i88 x24vdcc xt970qd xso031l x1q0q8m5 x1qndepd x153jb6y xpvm0e4 xj57cvi xy8obcc xas2l8k xuxw1ft x1d7z9mz xeuugli x1dc62k6",
|
|
452
535
|
children: /* @__PURE__ */ y("span", {
|
|
453
|
-
...
|
|
536
|
+
...f.props(l.hidden),
|
|
454
537
|
children: "Select"
|
|
455
538
|
})
|
|
456
|
-
}),
|
|
539
|
+
}), A.map((e) => {
|
|
457
540
|
let t = o?.columnId === e.id ? o.direction : void 0;
|
|
458
541
|
return /* @__PURE__ */ y("th", {
|
|
459
542
|
scope: "col",
|
|
460
543
|
title: e.label,
|
|
461
544
|
"aria-sort": t,
|
|
462
|
-
...
|
|
545
|
+
...f.props(j.header, N[e.role], e.width !== void 0 && j.width(e.width), e.secondary === !0 && j.secondary),
|
|
463
546
|
children: e.sortable === !0 && s !== void 0 ? /* @__PURE__ */ b("button", {
|
|
464
547
|
type: "button",
|
|
465
548
|
className: "x3nfvp2 x6s0dn4 x1hnptsi x193iq5w xeuugli x3h6u66 xwu7q15 x1717udv xc342km x1heor9g xjbqb8w xjb2p0i x1qlqyl8 x1pd3egz x15bjb6t x1ypdohk x1mkgjtd x1s9zmfe x13qnu6 x9v5kkp x19rmrnh x7s97pk",
|
|
@@ -475,7 +558,7 @@ function F({ rows: e, columns: t, getRowId: n, caption: r, empty: i, sort: o, on
|
|
|
475
558
|
children: [/* @__PURE__ */ y("span", {
|
|
476
559
|
className: "x1lliihq xeuugli xb3r6kr xlyipyv xuxw1ft",
|
|
477
560
|
children: e.label
|
|
478
|
-
}), y(t === "ascending" ?
|
|
561
|
+
}), y(t === "ascending" ? re : t === "descending" ? ne : ie, {
|
|
479
562
|
size: 14,
|
|
480
563
|
"aria-hidden": "true",
|
|
481
564
|
className: "x2lah0s"
|
|
@@ -489,23 +572,23 @@ function F({ rows: e, columns: t, getRowId: n, caption: r, empty: i, sort: o, on
|
|
|
489
572
|
}),
|
|
490
573
|
/* @__PURE__ */ b("tbody", {
|
|
491
574
|
onBlur: (e) => {
|
|
492
|
-
e.currentTarget.contains(e.relatedTarget) ||
|
|
575
|
+
e.currentTarget.contains(e.relatedTarget) || W(void 0);
|
|
493
576
|
},
|
|
494
577
|
children: [
|
|
495
|
-
|
|
578
|
+
Se.map(({ row: e, index: t, spacerHeight: n }) => /* @__PURE__ */ b(ee, { children: [n > 0 && /* @__PURE__ */ y("tr", {
|
|
496
579
|
"aria-hidden": "true",
|
|
497
580
|
children: /* @__PURE__ */ y("td", {
|
|
498
|
-
colSpan:
|
|
499
|
-
...
|
|
581
|
+
colSpan: Q,
|
|
582
|
+
...f.props(j.spacer(n))
|
|
500
583
|
})
|
|
501
584
|
}), /* @__PURE__ */ b("tr", {
|
|
502
585
|
"data-index": t,
|
|
503
586
|
"data-row-id": e.id,
|
|
504
|
-
"aria-rowindex":
|
|
505
|
-
ref:
|
|
506
|
-
onFocus: () =>
|
|
587
|
+
"aria-rowindex": E === void 0 ? void 0 : t + 2,
|
|
588
|
+
ref: E === void 0 || T === "fixed" ? void 0 : X.measureElement,
|
|
589
|
+
onFocus: () => W(e.id),
|
|
507
590
|
onClick: (e) => {
|
|
508
|
-
if (
|
|
591
|
+
if (v === void 0 || !U(e) || e.target instanceof Element && e.target.closest(fe) !== null) return;
|
|
509
592
|
let t = e.currentTarget.querySelector("[data-row-action]");
|
|
510
593
|
t?.focus({ preventScroll: !0 }), t?.click();
|
|
511
594
|
},
|
|
@@ -514,48 +597,48 @@ function F({ rows: e, columns: t, getRowId: n, caption: r, empty: i, sort: o, on
|
|
|
514
597
|
2: { className: "x1v2how9 xso031l x1q0q8m5 x1qndepd x13nmlw8 x1t1lzn6 x1ypdohk x1ecmtor" },
|
|
515
598
|
1: { className: "x1v2how9 xso031l x1q0q8m5 x1qndepd x13nmlw8 x1t1lzn6 x1r8u7ye" },
|
|
516
599
|
3: { className: "x1v2how9 xso031l x1q0q8m5 x1qndepd x13nmlw8 x1t1lzn6 x1ypdohk x1ecmtor x1r8u7ye" }
|
|
517
|
-
}[(
|
|
518
|
-
children: [
|
|
600
|
+
}[(v !== void 0) << 1 | (c?.has(e.id) === !0 || x === e.id)],
|
|
601
|
+
children: [c !== void 0 && /* @__PURE__ */ y("td", {
|
|
519
602
|
className: "x9f619 xt970qd xxymvpz xj0a0fe x1d7z9mz xeuugli x1dc62k6",
|
|
520
603
|
children: /* @__PURE__ */ y(a.Root, {
|
|
521
|
-
"aria-label":
|
|
522
|
-
checked:
|
|
604
|
+
"aria-label": p(e.original),
|
|
605
|
+
checked: c.has(e.id),
|
|
523
606
|
onCheckedChange: (t) => {
|
|
524
|
-
let n = new Set(
|
|
525
|
-
t ? n.add(e.id) : n.delete(e.id),
|
|
607
|
+
let n = new Set(c);
|
|
608
|
+
t ? n.add(e.id) : n.delete(e.id), d(n);
|
|
526
609
|
},
|
|
527
610
|
children: /* @__PURE__ */ y(a.Indicator, {})
|
|
528
611
|
})
|
|
529
|
-
}),
|
|
530
|
-
...
|
|
531
|
-
children:
|
|
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, {
|
|
532
615
|
row: e.original,
|
|
533
|
-
action:
|
|
534
|
-
active:
|
|
535
|
-
onKeyDown: (e) =>
|
|
536
|
-
children: /* @__PURE__ */ y(
|
|
616
|
+
action: v,
|
|
617
|
+
active: x === e.id,
|
|
618
|
+
onKeyDown: (e) => Ce(e, t),
|
|
619
|
+
children: /* @__PURE__ */ y(H, {
|
|
537
620
|
role: n.role,
|
|
538
|
-
fixed:
|
|
621
|
+
fixed: T === "fixed",
|
|
539
622
|
truncate: n.truncate,
|
|
540
623
|
children: n.cell(e.original)
|
|
541
624
|
})
|
|
542
|
-
}) : /* @__PURE__ */ y(
|
|
625
|
+
}) : /* @__PURE__ */ y(H, {
|
|
543
626
|
role: n.role,
|
|
544
|
-
fixed:
|
|
627
|
+
fixed: T === "fixed",
|
|
545
628
|
truncate: n.truncate,
|
|
546
629
|
children: n.cell(e.original)
|
|
547
630
|
})
|
|
548
631
|
}, n.id))]
|
|
549
632
|
})] }, e.id)),
|
|
550
|
-
|
|
633
|
+
E !== void 0 && De > 0 && /* @__PURE__ */ y("tr", {
|
|
551
634
|
"aria-hidden": "true",
|
|
552
635
|
children: /* @__PURE__ */ y("td", {
|
|
553
|
-
colSpan:
|
|
554
|
-
...
|
|
636
|
+
colSpan: Q,
|
|
637
|
+
...f.props(j.spacer(De))
|
|
555
638
|
})
|
|
556
639
|
}),
|
|
557
640
|
e.length === 0 && /* @__PURE__ */ y("tr", { children: /* @__PURE__ */ y("td", {
|
|
558
|
-
colSpan:
|
|
641
|
+
colSpan: Q,
|
|
559
642
|
className: "x1ttojsm x2b8uid x153jb6y",
|
|
560
643
|
children: i
|
|
561
644
|
}) })
|
|
@@ -563,21 +646,21 @@ function F({ rows: e, columns: t, getRowId: n, caption: r, empty: i, sort: o, on
|
|
|
563
646
|
})
|
|
564
647
|
]
|
|
565
648
|
}), /* @__PURE__ */ y("div", {
|
|
566
|
-
ref:
|
|
649
|
+
ref: R,
|
|
567
650
|
...{
|
|
568
651
|
0: {},
|
|
569
652
|
1: { className: "xid9utz xg7ukam x153jb6y xy8obcc xas2l8k x15x95ik x1az1eml" }
|
|
570
|
-
}[
|
|
571
|
-
children:
|
|
653
|
+
}[D !== void 0 | 0],
|
|
654
|
+
children: D
|
|
572
655
|
})]
|
|
573
|
-
}),
|
|
656
|
+
}), we && /* @__PURE__ */ y("div", {
|
|
574
657
|
className: "xg7ukam x178xt8z x13fuv20 xhjagg4",
|
|
575
|
-
children:
|
|
658
|
+
children: k
|
|
576
659
|
})]
|
|
577
660
|
});
|
|
578
661
|
}
|
|
579
|
-
function
|
|
580
|
-
let i =
|
|
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);
|
|
581
664
|
return /* @__PURE__ */ y("span", {
|
|
582
665
|
...{
|
|
583
666
|
0: { className: "x78zum5 x6s0dn4 xeuugli xh8yej3 xz7qr2x" },
|
|
@@ -599,12 +682,12 @@ function I({ role: e, fixed: t, truncate: n, children: r }) {
|
|
|
599
682
|
})
|
|
600
683
|
});
|
|
601
684
|
}
|
|
602
|
-
function
|
|
685
|
+
function U(e) {
|
|
603
686
|
if (e.defaultPrevented || e.button !== 0) return !1;
|
|
604
687
|
let t = e.metaKey || e.ctrlKey, n = e.altKey || e.shiftKey;
|
|
605
688
|
return t || n ? !1 : e.detail === 0 || e.currentTarget.ownerDocument.getSelection()?.isCollapsed !== !1;
|
|
606
689
|
}
|
|
607
|
-
function
|
|
690
|
+
function ve({ row: e, action: t, active: n, children: r, onKeyDown: i }) {
|
|
608
691
|
let a = t.label?.(e), o = t.href === void 0 ? /* @__PURE__ */ y("button", {
|
|
609
692
|
type: "button",
|
|
610
693
|
"aria-label": a,
|
|
@@ -612,7 +695,7 @@ function _e({ row: e, action: t, active: n, children: r, onKeyDown: i }) {
|
|
|
612
695
|
"data-row-action": !0,
|
|
613
696
|
onKeyDown: i,
|
|
614
697
|
onClick: (n) => {
|
|
615
|
-
|
|
698
|
+
U(n) && t.onActivate(e);
|
|
616
699
|
},
|
|
617
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",
|
|
618
701
|
children: r
|
|
@@ -622,7 +705,7 @@ function _e({ row: e, action: t, active: n, children: r, onKeyDown: i }) {
|
|
|
622
705
|
"data-row-action": !0,
|
|
623
706
|
onKeyDown: i,
|
|
624
707
|
onClick: (n) => {
|
|
625
|
-
t.onActivate !== void 0 &&
|
|
708
|
+
t.onActivate !== void 0 && U(n) && (n.preventDefault(), t.onActivate(e));
|
|
626
709
|
},
|
|
627
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",
|
|
628
711
|
children: r
|
|
@@ -634,7 +717,7 @@ function _e({ row: e, action: t, active: n, children: r, onKeyDown: i }) {
|
|
|
634
717
|
}) })] });
|
|
635
718
|
}
|
|
636
719
|
// packages/collections/src/collection-scroll.tsx
|
|
637
|
-
function
|
|
720
|
+
function ye(r) {
|
|
638
721
|
switch (r.status) {
|
|
639
722
|
case "loading": return /* @__PURE__ */ y(t, {
|
|
640
723
|
role: "status",
|
|
@@ -664,9 +747,9 @@ function R(r) {
|
|
|
664
747
|
});
|
|
665
748
|
}
|
|
666
749
|
}
|
|
667
|
-
function
|
|
750
|
+
function be({ children: e, endContent: t, onEndReached: n, fill: r = !1, endPosition: i = "end", label: a = "Collection" }) {
|
|
668
751
|
let o = g(null), s = g(null);
|
|
669
|
-
|
|
752
|
+
le({
|
|
670
753
|
end: s,
|
|
671
754
|
viewport: r ? o : void 0,
|
|
672
755
|
onEndReached: n,
|
|
@@ -697,11 +780,11 @@ function z({ children: e, endContent: t, onEndReached: n, fill: r = !1, endPosit
|
|
|
697
780
|
});
|
|
698
781
|
}
|
|
699
782
|
// packages/collections/src/inspector.tsx
|
|
700
|
-
var
|
|
701
|
-
function
|
|
702
|
-
let c = g(null), l = g(null),
|
|
703
|
-
|
|
704
|
-
a !== void 0 && c.current !== null &&
|
|
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({
|
|
705
788
|
block: "start",
|
|
706
789
|
behavior: "instant"
|
|
707
790
|
}));
|
|
@@ -714,7 +797,7 @@ function V({ master: t, detail: n, label: r, masterLabel: i, revealKey: a, retur
|
|
|
714
797
|
});
|
|
715
798
|
}
|
|
716
799
|
return /* @__PURE__ */ y("div", {
|
|
717
|
-
...
|
|
800
|
+
...d({ className: "x9vvk8s x12h1iku xeuugli xbixft x1hz01jw xtqrqnz x1778rvt" }, s),
|
|
718
801
|
children: /* @__PURE__ */ b("div", {
|
|
719
802
|
ref: c,
|
|
720
803
|
className: "xrvj5dj x4ruv2j x1y7acmc x7a106z x1j825kq xeuugli",
|
|
@@ -726,7 +809,7 @@ function V({ master: t, detail: n, label: r, masterLabel: i, revealKey: a, retur
|
|
|
726
809
|
className: "xeuugli",
|
|
727
810
|
children: t
|
|
728
811
|
}), /* @__PURE__ */ b("aside", {
|
|
729
|
-
ref:
|
|
812
|
+
ref: u,
|
|
730
813
|
"aria-label": r,
|
|
731
814
|
tabIndex: -1,
|
|
732
815
|
className: "x7wzq59 x7cfggw xqfmuo8 xeuugli x1sbza1b xhuqrux xexx8yu xdz7uhd xpilrb4 xdctr63 x1t7ytsu x97x49r x972fbf x1mg79u0 x13fuv20 xhjagg4 x14ijc3v x13qnu6 x9v5kkp x19rmrnh x12ijfkc",
|
|
@@ -742,9 +825,9 @@ function V({ master: t, detail: n, label: r, masterLabel: i, revealKey: a, retur
|
|
|
742
825
|
})
|
|
743
826
|
});
|
|
744
827
|
}
|
|
745
|
-
function
|
|
828
|
+
function K({ items: e, ...t }) {
|
|
746
829
|
return /* @__PURE__ */ y("dl", {
|
|
747
|
-
...
|
|
830
|
+
...d({ className: "x1ghz6dp xrvj5dj xezdspq x1i3977y xuytk5h x1hz01jw xvmahel xtqrqnz x1778rvt" }, t),
|
|
748
831
|
children: e.map(({ label: e, value: t }) => /* @__PURE__ */ b("div", {
|
|
749
832
|
className: "xjp7ctv",
|
|
750
833
|
children: [/* @__PURE__ */ y("dt", {
|
|
@@ -758,9 +841,9 @@ function H({ items: e, ...t }) {
|
|
|
758
841
|
});
|
|
759
842
|
}
|
|
760
843
|
// packages/collections/src/list-footer.tsx
|
|
761
|
-
function
|
|
844
|
+
function q({ children: e, actions: t, ...n }) {
|
|
762
845
|
return /* @__PURE__ */ b("div", {
|
|
763
|
-
...
|
|
846
|
+
...d({ className: "x78zum5 x6s0dn4 x1qughib x1a02dak xeuugli x1n8ia3y x1qokhjc x1m92p3w x178xt8z x13fuv20 xhjagg4 x153jb6y x1hz01jw xvmahel xtqrqnz x1778rvt" }, n),
|
|
764
847
|
children: [/* @__PURE__ */ y("div", {
|
|
765
848
|
className: "xeuugli xj0a0fe",
|
|
766
849
|
children: e
|
|
@@ -771,7 +854,7 @@ function U({ children: e, actions: t, ...n }) {
|
|
|
771
854
|
});
|
|
772
855
|
}
|
|
773
856
|
// packages/collections/src/metrics.tsx
|
|
774
|
-
var
|
|
857
|
+
var J = {
|
|
775
858
|
grid: {
|
|
776
859
|
k1xSpc: "x78zum5",
|
|
777
860
|
kwnvtZ: "x1a02dak",
|
|
@@ -789,16 +872,16 @@ var W = {
|
|
|
789
872
|
kogj98: "x1ghz6dp",
|
|
790
873
|
$$css: !0
|
|
791
874
|
}
|
|
792
|
-
},
|
|
793
|
-
inline:
|
|
794
|
-
columns:
|
|
875
|
+
}, xe = {
|
|
876
|
+
inline: J.grid,
|
|
877
|
+
columns: J.columns
|
|
795
878
|
};
|
|
796
|
-
function
|
|
797
|
-
return /* @__PURE__ */ y("dl", { ...
|
|
879
|
+
function Y({ layout: e = "inline", ...t }) {
|
|
880
|
+
return /* @__PURE__ */ y("dl", { ...d(f.props(xe[e]), t) });
|
|
798
881
|
}
|
|
799
|
-
function
|
|
882
|
+
function X({ label: e, value: t, ...n }) {
|
|
800
883
|
return /* @__PURE__ */ b("div", {
|
|
801
|
-
...
|
|
884
|
+
...d({ className: "x3nfvp2 x1pha0wt x1a02dak xunmzkg xeuugli x1hz01jw xvmahel xtqrqnz x1778rvt" }, n),
|
|
802
885
|
children: [/* @__PURE__ */ y("dt", {
|
|
803
886
|
className: "xeuugli x153jb6y x9ek82g xj0a0fe",
|
|
804
887
|
children: e
|
|
@@ -809,15 +892,15 @@ function q({ label: e, value: t, ...n }) {
|
|
|
809
892
|
});
|
|
810
893
|
}
|
|
811
894
|
// packages/collections/src/table.tsx
|
|
812
|
-
var
|
|
895
|
+
var Se = {
|
|
813
896
|
kzqmXN: "x11ymkkh x2ipgtl",
|
|
814
897
|
$$css: !0
|
|
815
|
-
},
|
|
898
|
+
}, Z = {
|
|
816
899
|
secondary: {
|
|
817
900
|
k1xSpc: "x1n9xxwz xazwdyr",
|
|
818
901
|
$$css: !0
|
|
819
902
|
},
|
|
820
|
-
column: (e) => [
|
|
903
|
+
column: (e) => [Se, { "--x-1xmrurk": ((e) => typeof e == "number" ? e + "px" : e ?? void 0)(`${e}%`) }],
|
|
821
904
|
th: {
|
|
822
905
|
kVAEAm: "x1n2onr6",
|
|
823
906
|
kZKoxP: "x24vdcc",
|
|
@@ -848,7 +931,7 @@ var J = {
|
|
|
848
931
|
$$css: !0
|
|
849
932
|
}
|
|
850
933
|
};
|
|
851
|
-
function
|
|
934
|
+
function Ce({ headers: e, children: t, label: n, ...r }) {
|
|
852
935
|
let i = e.findLastIndex((e) => typeof e == "string" || e.secondary !== !0);
|
|
853
936
|
return /* @__PURE__ */ y("div", {
|
|
854
937
|
role: "region",
|
|
@@ -856,13 +939,13 @@ function ve({ headers: e, children: t, label: n, ...r }) {
|
|
|
856
939
|
tabIndex: 0,
|
|
857
940
|
className: "xeuugli xh8yej3 xw2csxc x1t137rt x13qnu6 x9v5kkp x19rmrnh x1bqaal",
|
|
858
941
|
children: /* @__PURE__ */ b("table", {
|
|
859
|
-
...
|
|
942
|
+
...d({ "aria-label": n }, {
|
|
860
943
|
0: { className: "xh8yej3 x1mwwwfo xpvm0e4 x1hz01jw xvmahel xtqrqnz x1778rvt xdpxx8g" },
|
|
861
944
|
1: { className: "xh8yej3 x1mwwwfo xpvm0e4 x1hz01jw xvmahel xtqrqnz x1778rvt xdpxx8g x140o2bo" }
|
|
862
945
|
}[!!e.some((e) => typeof e != "string") | 0], r),
|
|
863
946
|
children: [/* @__PURE__ */ y("thead", { children: /* @__PURE__ */ y("tr", { children: e.map((t, n) => /* @__PURE__ */ y("th", {
|
|
864
947
|
scope: "col",
|
|
865
|
-
...
|
|
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),
|
|
866
949
|
children: /* @__PURE__ */ y("span", {
|
|
867
950
|
title: typeof t == "string" ? t : t.label,
|
|
868
951
|
className: "x1lliihq xb3r6kr xlyipyv",
|
|
@@ -872,9 +955,9 @@ function ve({ headers: e, children: t, label: n, ...r }) {
|
|
|
872
955
|
})
|
|
873
956
|
});
|
|
874
957
|
}
|
|
875
|
-
function
|
|
958
|
+
function Q({ children: e, secondary: t = !1, mobileLabel: n, ...r }) {
|
|
876
959
|
return /* @__PURE__ */ b("td", {
|
|
877
|
-
...
|
|
960
|
+
...d({
|
|
878
961
|
0: { className: "x1v2how9 x9f619 x1hmw7ec x1dc62k6 xbixft xxymvpz xuxw1ft xss6m8b xb3r6kr xlyipyv" },
|
|
879
962
|
1: { className: "x1v2how9 x9f619 x1hmw7ec x1dc62k6 xbixft xxymvpz xuxw1ft xss6m8b xb3r6kr xlyipyv x1n9xxwz xazwdyr" }
|
|
880
963
|
}[!!t | 0], r),
|
|
@@ -885,7 +968,7 @@ function X({ children: e, secondary: t = !1, mobileLabel: n, ...r }) {
|
|
|
885
968
|
});
|
|
886
969
|
}
|
|
887
970
|
// packages/collections/src/timestamp.tsx
|
|
888
|
-
function
|
|
971
|
+
function $({ dateTime: e, label: t, title: n }) {
|
|
889
972
|
return n === void 0 ? /* @__PURE__ */ y("time", {
|
|
890
973
|
dateTime: e,
|
|
891
974
|
className: "x1hz01jw xy8obcc xas2l8k x153jb6y xss6m8b xj0a0fe x13qnu6 x9v5kkp x19rmrnh x7s97pk",
|
|
@@ -901,14 +984,14 @@ function Z({ dateTime: e, label: t, title: n }) {
|
|
|
901
984
|
}), /* @__PURE__ */ y(s.Portal, { children: /* @__PURE__ */ y(s.Positioner, { children: /* @__PURE__ */ y(s.Popup, { children: n }) }) })] });
|
|
902
985
|
}
|
|
903
986
|
// packages/collections/src/timeline.tsx
|
|
904
|
-
function
|
|
987
|
+
function we({ label: e, children: t }) {
|
|
905
988
|
return /* @__PURE__ */ y("ol", {
|
|
906
989
|
"aria-label": e,
|
|
907
990
|
className: "xe8uvvx x1ghz6dp x1717udv xeuugli",
|
|
908
991
|
children: t
|
|
909
992
|
});
|
|
910
993
|
}
|
|
911
|
-
function
|
|
994
|
+
function Te({ icon: e, title: t, time: n, metadata: i, children: a, details: o, defaultOpen: s = !1 }) {
|
|
912
995
|
let [c, l] = _(s), u = /* @__PURE__ */ b("div", {
|
|
913
996
|
className: "x78zum5 x1pha0wt x1hnptsi x1a02dak xeuugli",
|
|
914
997
|
children: [/* @__PURE__ */ y("div", {
|
|
@@ -950,8 +1033,8 @@ function Q({ icon: e, title: t, time: n, metadata: i, children: a, details: o, d
|
|
|
950
1033
|
})]
|
|
951
1034
|
});
|
|
952
1035
|
}
|
|
953
|
-
var
|
|
954
|
-
Root:
|
|
955
|
-
Item:
|
|
1036
|
+
var Ee = {
|
|
1037
|
+
Root: we,
|
|
1038
|
+
Item: Te
|
|
956
1039
|
};
|
|
957
|
-
export {
|
|
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 };
|