@mechane-ai/elements 0.6.0 → 0.7.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 (40) hide show
  1. package/dist/ai.js +24 -23
  2. package/dist/assets/stylex.css +32 -4
  3. package/dist/{categorical-values-DrTcMsSi.js → categorical-values-75J0TUkR.js} +2 -2
  4. package/dist/{chart-frame-cfBPXmni.js → chart-frame--DOsZKwP.js} +1 -1
  5. package/dist/{chart-input-hK9U0Ql0.js → chart-input-C-g586YE.js} +2 -2
  6. package/dist/charts/cartesian.js +5 -5
  7. package/dist/charts/distribution.js +2 -2
  8. package/dist/charts/graph.js +2 -2
  9. package/dist/charts/hierarchy.js +3 -3
  10. package/dist/charts/matrix.js +2 -2
  11. package/dist/charts/timeline.js +1 -1
  12. package/dist/charts.js +1 -1
  13. package/dist/{code-block-DSmz0jTf.js → code-block-D0Jmsj7w.js} +1 -1
  14. package/dist/collections.js +95 -83
  15. package/dist/content/code.js +1 -1
  16. package/dist/content/diff.js +2 -2
  17. package/dist/content/link.js +1 -1
  18. package/dist/content/markdown.js +2 -2
  19. package/dist/content/tree.js +2 -2
  20. package/dist/{content-link-DLiDJzwq.js → content-link-HLYu0cmz.js} +1 -1
  21. package/dist/content.js +2 -2
  22. package/dist/feedback.js +1 -1
  23. package/dist/forms/dates.js +1 -1
  24. package/dist/forms.js +1 -1
  25. package/dist/index.js +1 -1
  26. package/dist/layout.js +77 -35
  27. package/dist/navigation/commands.js +1 -1
  28. package/dist/packages/ai/src/prompt-input.d.ts +2 -1
  29. package/dist/packages/collections/src/data-table.d.ts +3 -2
  30. package/dist/packages/core/src/text.d.ts +4 -2
  31. package/dist/packages/forms/src/field-styles.d.ts +4 -0
  32. package/dist/packages/forms/src/forms.d.ts +2 -1
  33. package/dist/packages/layout/src/focus-page.d.ts +4 -0
  34. package/dist/packages/layout/src/index.d.ts +2 -0
  35. package/dist/packages/layout/src/workbench.d.ts +12 -0
  36. package/dist/{pierre-tree-C-eebLcZ.js → pierre-tree-DVybsnm4.js} +2 -2
  37. package/dist/{src-Daf4PUD6.js → src-B_DCatpY.js} +1 -1
  38. package/dist/{src-DuTmAQp5.js → src-BkCsvZGi.js} +5 -2
  39. package/dist/{src-DjvJJoaw.js → src-DjTM64tN.js} +18 -13
  40. package/package.json +1 -1
@@ -1,16 +1,16 @@
1
- import { c as e, f as t, i as n, v as r, y as i } from "./src-DuTmAQp5.js";
2
- import { r as a } from "./src-DjvJJoaw.js";
1
+ import { c as e, f as t, i as n, v as r, y as i } from "./src-BkCsvZGi.js";
2
+ import { r as a } from "./src-DjTM64tN.js";
3
3
  import { r as o } from "./src-CfDf8TY8.js";
4
4
  import { t as s } from "./accessibility-C-aIZ1Yx.js";
5
5
  import { mergeProps as c } from "@base-ui/react/merge-props";
6
6
  import * as l from "@stylexjs/stylex";
7
- import { Fragment as ee, useEffect as u, useLayoutEffect as te, useMemo as d, useRef as f, useState as p } from "react";
7
+ import { Fragment as ee, useEffect as u, useLayoutEffect as d, useMemo as te, useRef as f, useState as p } from "react";
8
8
  import { jsx as m, jsxs as h } from "react/jsx-runtime";
9
9
  import { ArrowDown as ne, ArrowUp as re, ArrowUpDown as ie, ChevronLeft as g, ChevronRight as _, Columns3 as v, X as y } from "lucide-react";
10
- import { createColumnHelper as ae, tableFeatures as b, useTable as x } from "@tanstack/react-table";
11
- import { defaultRangeExtractor as S, useVirtualizer as oe } from "@tanstack/react-virtual";
10
+ import { createColumnHelper as ae, tableFeatures as b, useTable as oe } from "@tanstack/react-table";
11
+ import { defaultRangeExtractor as x, useVirtualizer as se } from "@tanstack/react-virtual";
12
12
  // packages/collections/src/collection-controls.tsx
13
- function C({ label: e, children: t, actions: n }) {
13
+ function S({ label: e, children: t, actions: n }) {
14
14
  return /* @__PURE__ */ h("div", {
15
15
  role: "group",
16
16
  "aria-label": e,
@@ -21,7 +21,7 @@ function C({ label: e, children: t, actions: n }) {
21
21
  })]
22
22
  });
23
23
  }
24
- function w({ filters: e, onRemove: t, label: n = "Applied filters" }) {
24
+ function C({ filters: e, onRemove: t, label: n = "Applied filters" }) {
25
25
  return /* @__PURE__ */ m("div", {
26
26
  role: "group",
27
27
  "aria-label": n,
@@ -40,7 +40,7 @@ function w({ filters: e, onRemove: t, label: n = "Applied filters" }) {
40
40
  }, e.id))
41
41
  });
42
42
  }
43
- function T({ columns: e, onVisibilityChange: t, label: n = "Columns" }) {
43
+ function w({ columns: e, onVisibilityChange: t, label: n = "Columns" }) {
44
44
  return /* @__PURE__ */ h(o.Root, { children: [/* @__PURE__ */ h(o.Trigger, {
45
45
  render: /* @__PURE__ */ m(r, {
46
46
  variant: "outline",
@@ -69,7 +69,7 @@ function T({ columns: e, onVisibilityChange: t, label: n = "Columns" }) {
69
69
  })
70
70
  }) })] });
71
71
  }
72
- function E({ description: t, previous: n, next: i }) {
72
+ function T({ description: t, previous: n, next: i }) {
73
73
  return /* @__PURE__ */ h("nav", {
74
74
  "aria-label": "Pagination",
75
75
  className: "x78zum5 x6s0dn4 x1qughib x1a02dak xaml1ju",
@@ -96,7 +96,7 @@ function E({ description: t, previous: n, next: i }) {
96
96
  });
97
97
  }
98
98
  // packages/collections/src/use-end-reached.ts
99
- function D({ end: e, viewport: t, onEndReached: n, content: r }) {
99
+ function E({ end: e, viewport: t, onEndReached: n, content: r }) {
100
100
  u(() => {
101
101
  if (n === void 0 || e.current === null) return;
102
102
  let r = new IntersectionObserver((e) => {
@@ -111,11 +111,11 @@ function D({ end: e, viewport: t, onEndReached: n, content: r }) {
111
111
  ]);
112
112
  }
113
113
  // packages/collections/src/data-table.tsx
114
- var se = b({}), O = "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\"])", k = /* @__PURE__ */ new Map([["ArrowUp", -1], ["ArrowDown", 1]]), A = {
114
+ var ce = b({}), le = "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\"])", ue = /* @__PURE__ */ new Map([["ArrowUp", -1], ["ArrowDown", 1]]), D = {
115
115
  kmVPX3: "x1717udv",
116
116
  kMzoRj: "xc342km",
117
117
  $$css: !0
118
- }, j = {
118
+ }, O = {
119
119
  frame: {
120
120
  k7Eaqz: "xeuugli",
121
121
  $$css: !0
@@ -229,39 +229,51 @@ var se = b({}), O = "a, button, input, select, textarea, label, summary, [role=\
229
229
  $$css: !0
230
230
  },
231
231
  spacer: (e) => [
232
- A,
232
+ D,
233
233
  {
234
234
  kZKoxP: e == null ? e : "x16ye13r",
235
235
  $$css: !0
236
236
  },
237
237
  { "--x-height": ((e) => typeof e == "number" ? e + "px" : e ?? void 0)(e) }
238
238
  ]
239
- }, M = {
240
- start: j.start,
241
- end: j.end
242
- }, ce = {
243
- content: j.content,
244
- fill: j.fillFrame
245
- }, le = {
246
- content: j.content,
247
- fill: j.fillViewport
239
+ }, k = {
240
+ start: O.start,
241
+ end: O.end
242
+ }, A = {
243
+ content: O.content,
244
+ fill: O.fillFrame
245
+ }, j = {
246
+ content: O.content,
247
+ fill: O.fillViewport
248
248
  };
249
- function N({ rows: e, columns: t, getRowId: n, caption: r, empty: i, sort: o, onSortChange: c, selectedIds: g, onSelectionChange: _, selectionLabel: v, rowAction: y, activeRowId: b, hideCaption: C = !1, hideHeaders: w = !1, window: T, endContent: E, onEndReached: A, footer: N }) {
250
- let F = d(() => {
249
+ function M({ rows: e, columns: t, getRowId: n, caption: r, empty: i, sort: o, onSortChange: c, selectedIds: g, onSelectionChange: _, selectionLabel: v, rowAction: y, activeRowId: b, focusRowId: S, hideCaption: C = !1, hideHeaders: w = !1, window: T, endContent: D, onEndReached: M, footer: P }) {
250
+ let F = te(() => {
251
251
  let e = ae();
252
252
  return e.columns(t.map((t) => e.display({
253
253
  id: t.id,
254
254
  header: t.label
255
255
  })));
256
- }, [t]), I = x({
257
- features: se,
256
+ }, [t]), I = oe({
257
+ features: ce,
258
258
  columns: F,
259
259
  data: e,
260
260
  getRowId: n
261
- }), L = f(null), R = f(null), z = f(null), B = f(null), [V, H] = p(0), [U, W] = p(), G = f(void 0), K = e.findIndex((e) => n(e) === U), de = t.findIndex((e) => e.secondary !== !0), q = typeof T?.height == "string" ? T.height : "content";
262
- D({
261
+ }), L = f(null), R = f(null), z = f(null), B = f(null), [V, H] = p(0), [U, W] = p(), G = f(void 0), K = f(void 0), q = e.findIndex((e) => n(e) === U), fe = t.findIndex((e) => e.secondary !== !0), J = typeof T?.height == "string" ? T.height : "content";
262
+ d(() => {
263
+ if (S === void 0) {
264
+ K.current = void 0;
265
+ return;
266
+ }
267
+ if (K.current === S) return;
268
+ let e = L.current?.querySelector(`[data-row-id="${CSS.escape(S)}"] [data-row-action]`);
269
+ if (e == null) return;
270
+ let t = requestAnimationFrame(() => {
271
+ e.focus({ preventScroll: !0 }), K.current = S;
272
+ });
273
+ return () => cancelAnimationFrame(t);
274
+ }, [e, S]), E({
263
275
  end: R,
264
- onEndReached: T === void 0 ? A : void 0,
276
+ onEndReached: T === void 0 ? M : void 0,
265
277
  content: e.length
266
278
  }), u(() => {
267
279
  let e = z.current, t = B.current;
@@ -273,7 +285,7 @@ function N({ rows: e, columns: t, getRowId: n, caption: r, empty: i, sort: o, on
273
285
  C,
274
286
  w
275
287
  ]);
276
- let J = oe({
288
+ let Y = se({
277
289
  count: e.length,
278
290
  enabled: T !== void 0,
279
291
  getScrollElement: () => L.current,
@@ -287,65 +299,65 @@ function N({ rows: e, columns: t, getRowId: n, caption: r, empty: i, sort: o, on
287
299
  scrollPaddingStart: V,
288
300
  overscan: 6,
289
301
  rangeExtractor: (t) => {
290
- let n = S(t);
291
- return K === -1 ? n : [.../* @__PURE__ */ new Set([
302
+ let n = x(t);
303
+ return q === -1 ? n : [.../* @__PURE__ */ new Set([
292
304
  ...n,
293
- K - 1,
294
- K,
295
- K + 1
305
+ q - 1,
306
+ q,
307
+ q + 1
296
308
  ])].filter((t) => t >= 0 && t < e.length).toSorted((e, t) => e - t);
297
309
  }
298
- }), Y = T === void 0 ? I.getRowModel().rows.map((e, t) => ({
310
+ }), pe = T === void 0 ? I.getRowModel().rows.map((e, t) => ({
299
311
  row: e,
300
312
  index: t,
301
313
  gap: 0
302
- })) : J.getVirtualItems().flatMap((e, t, n) => {
314
+ })) : Y.getVirtualItems().flatMap((e, t, n) => {
303
315
  let r = I.getRowModel().rows[e.index];
304
316
  return r === void 0 ? [] : [{
305
317
  row: r,
306
318
  index: e.index,
307
319
  gap: e.start - (n[t - 1]?.end ?? V)
308
320
  }];
309
- }), X = T !== void 0 && (e.length === 0 || J.range?.endIndex === e.length - 1);
321
+ }), X = T !== void 0 && (e.length === 0 || Y.range?.endIndex === e.length - 1);
310
322
  u(() => {
311
- X && A?.();
323
+ X && M?.();
312
324
  }, [
313
325
  X,
314
- A,
326
+ M,
315
327
  e.length
316
- ]), te(() => {
328
+ ]), d(() => {
317
329
  if (G.current === void 0) return;
318
330
  let e = Array.from(L.current?.querySelectorAll("[data-row-id]") ?? []).find((e) => e.dataset.rowId === G.current)?.querySelector("[data-row-action]");
319
331
  e != null && (e.focus({ preventScroll: T !== void 0 }), G.current = void 0);
320
332
  });
321
- function fe(t, r) {
333
+ function me(t, r) {
322
334
  let i = t.metaKey || t.ctrlKey, a = t.altKey || t.shiftKey;
323
335
  if (i || a) return;
324
- let o = k.get(t.key);
336
+ let o = ue.get(t.key);
325
337
  if (o === void 0) return;
326
338
  t.preventDefault();
327
339
  let s = r + o, c = e[s];
328
- c !== void 0 && (G.current = n(c), W(G.current), T !== void 0 && J.scrollToIndex(s, { align: "auto" }));
340
+ c !== void 0 && (G.current = n(c), W(G.current), T !== void 0 && Y.scrollToIndex(s, { align: "auto" }));
329
341
  }
330
- let Z = t.length + (g === void 0 ? 0 : 1), Q = g === void 0 ? 0 : 44, pe = t.reduce((e, t) => e + (t.width ?? 160), Q), me = t.filter((e) => e.secondary !== !0).reduce((e, t) => e + (t.width ?? 160), Q), $ = J.getTotalSize() - (J.getVirtualItems().at(-1)?.end ?? V) + V;
342
+ let Z = t.length + (g === void 0 ? 0 : 1), Q = g === void 0 ? 0 : 44, he = t.reduce((e, t) => e + (t.width ?? 160), Q), ge = t.filter((e) => e.secondary !== !0).reduce((e, t) => e + (t.width ?? 160), Q), $ = Y.getTotalSize() - (Y.getVirtualItems().at(-1)?.end ?? V) + V;
331
343
  return /* @__PURE__ */ h("div", {
332
- ...l.props(j.frame, ce[q]),
344
+ ...l.props(O.frame, A[J]),
333
345
  children: [/* @__PURE__ */ h("div", {
334
346
  ref: L,
335
347
  role: "region",
336
348
  "aria-label": r,
337
349
  tabIndex: 0,
338
- ...l.props(j.viewport, le[q], typeof T?.height == "number" && j.virtual(T.height)),
350
+ ...l.props(O.viewport, j[J], typeof T?.height == "number" && O.virtual(T.height)),
339
351
  children: [/* @__PURE__ */ h("table", {
340
352
  "aria-rowcount": T === void 0 ? void 0 : Math.max(1, e.length) + 1,
341
- ...l.props(j.table, t.some((e) => e.truncate === !0) && j.fixed, j.minimumWidth(pe, me)),
353
+ ...l.props(O.table, t.some((e) => e.truncate === !0) && O.fixed, O.minimumWidth(he, ge)),
342
354
  children: [
343
355
  /* @__PURE__ */ m("caption", {
344
356
  ref: z,
345
- ...l.props(j.caption, C && s.hidden),
357
+ ...l.props(O.caption, C && s.hidden),
346
358
  children: r
347
359
  }),
348
- /* @__PURE__ */ h("colgroup", { children: [g !== void 0 && /* @__PURE__ */ m("col", { className: "x187nhsf xeuugli x1m92p3w" }), t.map((e) => /* @__PURE__ */ m("col", { ...l.props(e.width !== void 0 && j.width(e.width), e.secondary === !0 && j.secondary) }, e.id))] }),
360
+ /* @__PURE__ */ h("colgroup", { children: [g !== void 0 && /* @__PURE__ */ m("col", { className: "x187nhsf xeuugli x1m92p3w" }), t.map((e) => /* @__PURE__ */ m("col", { ...l.props(e.width !== void 0 && O.width(e.width), e.secondary === !0 && O.secondary) }, e.id))] }),
349
361
  /* @__PURE__ */ m("thead", {
350
362
  ref: B,
351
363
  ...l.props(w && s.hidden),
@@ -358,7 +370,7 @@ function N({ rows: e, columns: t, getRowId: n, caption: r, empty: i, sort: o, on
358
370
  return /* @__PURE__ */ m("th", {
359
371
  scope: "col",
360
372
  "aria-sort": t,
361
- ...l.props(j.header, M[e.align ?? "start"], e.width !== void 0 && j.width(e.width), e.secondary === !0 && j.secondary),
373
+ ...l.props(O.header, k[e.align ?? "start"], e.width !== void 0 && O.width(e.width), e.secondary === !0 && O.secondary),
362
374
  children: e.sortable === !0 && c !== void 0 ? /* @__PURE__ */ h("button", {
363
375
  type: "button",
364
376
  className: "x3nfvp2 x6s0dn4 x1hnptsi x1uey4wk xwu7q15 x1717udv xc342km x1heor9g xjbqb8w xjb2p0i x1qlqyl8 x1pd3egz x15bjb6t x1ypdohk x1mkgjtd x13qnu6 x9v5kkp x19rmrnh x7s97pk",
@@ -384,20 +396,20 @@ function N({ rows: e, columns: t, getRowId: n, caption: r, empty: i, sort: o, on
384
396
  e.currentTarget.contains(e.relatedTarget) || W(void 0);
385
397
  },
386
398
  children: [
387
- Y.map(({ row: e, index: n, gap: r }) => /* @__PURE__ */ h(ee, { children: [r > 0 && /* @__PURE__ */ m("tr", {
399
+ pe.map(({ row: e, index: n, gap: r }) => /* @__PURE__ */ h(ee, { children: [r > 0 && /* @__PURE__ */ m("tr", {
388
400
  "aria-hidden": "true",
389
401
  children: /* @__PURE__ */ m("td", {
390
402
  colSpan: Z,
391
- ...l.props(j.spacer(r))
403
+ ...l.props(O.spacer(r))
392
404
  })
393
405
  }), /* @__PURE__ */ h("tr", {
394
406
  "data-index": n,
395
407
  "data-row-id": e.id,
396
408
  "aria-rowindex": T === void 0 ? void 0 : n + 2,
397
- ref: T === void 0 ? void 0 : J.measureElement,
409
+ ref: T === void 0 ? void 0 : Y.measureElement,
398
410
  onFocus: () => W(e.id),
399
411
  onClick: (e) => {
400
- if (y === void 0 || !P(e) || e.target instanceof Element && e.target.closest(O) !== null) return;
412
+ if (y === void 0 || !N(e) || e.target instanceof Element && e.target.closest(le) !== null) return;
401
413
  let t = e.currentTarget.querySelector("[data-row-action]");
402
414
  t?.focus({ preventScroll: !0 }), t?.click();
403
415
  },
@@ -419,12 +431,12 @@ function N({ rows: e, columns: t, getRowId: n, caption: r, empty: i, sort: o, on
419
431
  children: /* @__PURE__ */ m(a.Indicator, {})
420
432
  })
421
433
  }), t.map((t, r) => /* @__PURE__ */ m("td", {
422
- ...l.props(j.cell, M[t.align ?? "start"], t.width !== void 0 && j.width(t.width), t.secondary === !0 && j.secondary, t.truncate === !0 && j.truncated),
423
- children: y !== void 0 && r === de ? /* @__PURE__ */ m(ue, {
434
+ ...l.props(O.cell, k[t.align ?? "start"], t.width !== void 0 && O.width(t.width), t.secondary === !0 && O.secondary, t.truncate === !0 && O.truncated),
435
+ children: y !== void 0 && r === fe ? /* @__PURE__ */ m(de, {
424
436
  row: e.original,
425
437
  action: y,
426
438
  active: b === e.id,
427
- onKeyDown: (e) => fe(e, n),
439
+ onKeyDown: (e) => me(e, n),
428
440
  children: /* @__PURE__ */ m("span", {
429
441
  ...{
430
442
  0: { className: "x1lliihq xeuugli x193iq5w" },
@@ -445,7 +457,7 @@ function N({ rows: e, columns: t, getRowId: n, caption: r, empty: i, sort: o, on
445
457
  "aria-hidden": "true",
446
458
  children: /* @__PURE__ */ m("td", {
447
459
  colSpan: Z,
448
- ...l.props(j.spacer($))
460
+ ...l.props(O.spacer($))
449
461
  })
450
462
  }),
451
463
  e.length === 0 && /* @__PURE__ */ m("tr", { children: /* @__PURE__ */ m("td", {
@@ -461,21 +473,21 @@ function N({ rows: e, columns: t, getRowId: n, caption: r, empty: i, sort: o, on
461
473
  ...{
462
474
  0: {},
463
475
  1: { className: "xid9utz x1c8xbx5" }
464
- }[E !== void 0 | 0],
465
- children: E
476
+ }[D !== void 0 | 0],
477
+ children: D
466
478
  })]
467
- }), N !== void 0 && /* @__PURE__ */ m("div", {
479
+ }), P !== void 0 && /* @__PURE__ */ m("div", {
468
480
  className: "x1c8xbx5 x178xt8z x13fuv20 xhjagg4",
469
- children: N
481
+ children: P
470
482
  })]
471
483
  });
472
484
  }
473
- function P(e) {
485
+ function N(e) {
474
486
  if (e.defaultPrevented || e.button !== 0) return !1;
475
487
  let t = e.metaKey || e.ctrlKey, n = e.altKey || e.shiftKey;
476
488
  return t || n ? !1 : e.detail === 0 || e.currentTarget.ownerDocument.getSelection()?.isCollapsed !== !1;
477
489
  }
478
- function ue({ row: e, action: t, active: n, children: r, onKeyDown: i }) {
490
+ function de({ row: e, action: t, active: n, children: r, onKeyDown: i }) {
479
491
  return t.href === void 0 ? /* @__PURE__ */ m("button", {
480
492
  type: "button",
481
493
  "aria-label": t.label?.(e),
@@ -483,7 +495,7 @@ function ue({ row: e, action: t, active: n, children: r, onKeyDown: i }) {
483
495
  "data-row-action": !0,
484
496
  onKeyDown: i,
485
497
  onClick: (n) => {
486
- P(n) && t.onActivate(e);
498
+ N(n) && t.onActivate(e);
487
499
  },
488
500
  className: "x1rh3ycu x1hx0egp x1lliihq xh8yej3 xaeotn9 xwu7q15 x1717udv xc342km x1cum3z5 x1heor9g xjbqb8w xjb2p0i x1qlqyl8 x1pd3egz x15bjb6t x16tdsg8 x1hl2dhg x1ypdohk x13qnu6 x9v5kkp x19rmrnh x7s97pk",
489
501
  children: r
@@ -493,14 +505,14 @@ function ue({ row: e, action: t, active: n, children: r, onKeyDown: i }) {
493
505
  "data-row-action": !0,
494
506
  onKeyDown: i,
495
507
  onClick: (n) => {
496
- t.onActivate !== void 0 && P(n) && (n.preventDefault(), t.onActivate(e));
508
+ t.onActivate !== void 0 && N(n) && (n.preventDefault(), t.onActivate(e));
497
509
  },
498
510
  className: "x1rh3ycu x1hx0egp x1lliihq xh8yej3 xaeotn9 xwu7q15 x1717udv xc342km x1cum3z5 x1heor9g xjbqb8w xjb2p0i x1qlqyl8 x1pd3egz x15bjb6t x16tdsg8 x1hl2dhg x1ypdohk x13qnu6 x9v5kkp x19rmrnh x7s97pk",
499
511
  children: r
500
512
  });
501
513
  }
502
514
  // packages/collections/src/collection-scroll.tsx
503
- function F(e) {
515
+ function P(e) {
504
516
  switch (e.status) {
505
517
  case "loading": return /* @__PURE__ */ m("span", {
506
518
  role: "status",
@@ -520,9 +532,9 @@ function F(e) {
520
532
  });
521
533
  }
522
534
  }
523
- function I({ children: e, endContent: t, onEndReached: n, fill: r = !1, endPosition: i = "end" }) {
535
+ function F({ children: e, endContent: t, onEndReached: n, fill: r = !1, endPosition: i = "end" }) {
524
536
  let a = f(null), o = f(null);
525
- D({
537
+ E({
526
538
  end: o,
527
539
  viewport: r ? a : void 0,
528
540
  onEndReached: n,
@@ -550,7 +562,7 @@ function I({ children: e, endContent: t, onEndReached: n, fill: r = !1, endPosit
550
562
  });
551
563
  }
552
564
  // packages/collections/src/inspector.tsx
553
- function L({ master: e, detail: t, label: n, ...r }) {
565
+ function I({ master: e, detail: t, label: n, ...r }) {
554
566
  return /* @__PURE__ */ h("div", {
555
567
  ...c({ className: "xrvj5dj x1mkdm3x xmkeg23 x1y0btm7 x1ey3b81 x1ok0vyi xpvm0e4 xb3r6kr" }, r),
556
568
  children: [/* @__PURE__ */ m("div", {
@@ -563,7 +575,7 @@ function L({ master: e, detail: t, label: n, ...r }) {
563
575
  })]
564
576
  });
565
577
  }
566
- function R({ items: e, ...t }) {
578
+ function L({ items: e, ...t }) {
567
579
  return /* @__PURE__ */ m("dl", {
568
580
  ...c({ className: "x1ghz6dp xrvj5dj x10i657a x1i3977y xuytk5h x1hz01jw xvmahel xtqrqnz x1778rvt" }, t),
569
581
  children: e.map(({ label: e, value: t }) => /* @__PURE__ */ h("div", {
@@ -579,7 +591,7 @@ function R({ items: e, ...t }) {
579
591
  });
580
592
  }
581
593
  // packages/collections/src/list-footer.tsx
582
- function z({ children: e, actions: t, ...n }) {
594
+ function R({ children: e, actions: t, ...n }) {
583
595
  return /* @__PURE__ */ h("div", {
584
596
  ...c({ className: "x78zum5 x6s0dn4 x1qughib x1a02dak x1n8ia3y x1qokhjc x1m92p3w x178xt8z x13fuv20 xhjagg4 x153jb6y x1hz01jw xvmahel xtqrqnz x1778rvt" }, n),
585
597
  children: [/* @__PURE__ */ m("div", { children: e }), t != null && /* @__PURE__ */ m("div", {
@@ -589,10 +601,10 @@ function z({ children: e, actions: t, ...n }) {
589
601
  });
590
602
  }
591
603
  // packages/collections/src/metrics.tsx
592
- function B(e) {
604
+ function z(e) {
593
605
  return /* @__PURE__ */ m("dl", { ...c({ className: "x78zum5 x1a02dak xpb3s3w x1i3977y x1ghz6dp" }, e) });
594
606
  }
595
- function V({ label: e, value: t, ...n }) {
607
+ function B({ label: e, value: t, ...n }) {
596
608
  return /* @__PURE__ */ h("div", {
597
609
  ...c({ className: "x3nfvp2 x1pha0wt xunmzkg xeuugli x1hz01jw xvmahel xtqrqnz x1778rvt" }, n),
598
610
  children: [/* @__PURE__ */ m("dt", {
@@ -605,10 +617,10 @@ function V({ label: e, value: t, ...n }) {
605
617
  });
606
618
  }
607
619
  // packages/collections/src/table.tsx
608
- var H = {
620
+ var V = {
609
621
  kzqmXN: "x5lhr3w",
610
622
  $$css: !0
611
- }, U = {
623
+ }, H = {
612
624
  secondary: {
613
625
  k1xSpc: "x1n9xxwz xazwdyr",
614
626
  $$css: !0
@@ -617,7 +629,7 @@ var H = {
617
629
  kzqmXN: "x2ipgtl",
618
630
  $$css: !0
619
631
  },
620
- column: (e) => [H, { "--x-width": ((e) => typeof e == "number" ? e + "px" : e ?? void 0)(`${e}%`) }],
632
+ column: (e) => [V, { "--x-width": ((e) => typeof e == "number" ? e + "px" : e ?? void 0)(`${e}%`) }],
621
633
  th: {
622
634
  kVAEAm: "x1n2onr6",
623
635
  kZKoxP: "xc9qbxq",
@@ -647,7 +659,7 @@ var H = {
647
659
  $$css: !0
648
660
  }
649
661
  };
650
- function W({ headers: e, children: t, label: n, ...r }) {
662
+ function U({ headers: e, children: t, label: n, ...r }) {
651
663
  let i = e.findLastIndex((e) => typeof e == "string" || e.secondary !== !0);
652
664
  return /* @__PURE__ */ m("div", {
653
665
  role: "region",
@@ -661,13 +673,13 @@ function W({ headers: e, children: t, label: n, ...r }) {
661
673
  }[!!e.some((e) => typeof e != "string") | 0], r),
662
674
  children: [/* @__PURE__ */ m("thead", { children: /* @__PURE__ */ m("tr", { children: e.map((t, n) => /* @__PURE__ */ m("th", {
663
675
  scope: "col",
664
- ...l.props(U.th, typeof t != "string" && U.column(t.width), typeof t != "string" && U.compactWidth, typeof t != "string" && t.secondary === !0 && U.secondary, n === e.length - 1 && U.lastHeader, n === i && U.lastPrimaryHeader),
676
+ ...l.props(H.th, typeof t != "string" && H.column(t.width), typeof t != "string" && H.compactWidth, typeof t != "string" && t.secondary === !0 && H.secondary, n === e.length - 1 && H.lastHeader, n === i && H.lastPrimaryHeader),
665
677
  children: typeof t == "string" ? t : t.label
666
678
  }, typeof t == "string" ? t : t.label)) }) }), /* @__PURE__ */ m("tbody", { children: t })]
667
679
  })
668
680
  });
669
681
  }
670
- function G({ children: e, secondary: t = !1, mobileLabel: n, ...r }) {
682
+ function W({ children: e, secondary: t = !1, mobileLabel: n, ...r }) {
671
683
  return /* @__PURE__ */ h("td", {
672
684
  ...c({
673
685
  0: { className: "x14o62y9 x9f619 x1t0vds8 x1m92p3w xbixft xxymvpz xuxw1ft xss6m8b xb3r6kr xlyipyv" },
@@ -680,7 +692,7 @@ function G({ children: e, secondary: t = !1, mobileLabel: n, ...r }) {
680
692
  });
681
693
  }
682
694
  // packages/collections/src/timestamp.tsx
683
- function K({ dateTime: e, label: t, title: n }) {
695
+ function G({ dateTime: e, label: t, title: n }) {
684
696
  return /* @__PURE__ */ m("time", {
685
697
  dateTime: e,
686
698
  title: n,
@@ -688,4 +700,4 @@ function K({ dateTime: e, label: t, title: n }) {
688
700
  children: t
689
701
  });
690
702
  }
691
- export { G as Cell, F as CollectionEnd, E as CollectionPagination, I as CollectionScroll, C as CollectionToolbar, T as ColumnControls, N as DataTable, R as Details, w as FilterChips, L as Inspector, z as ListFooter, V as Metric, B as MetricGrid, W as Table, K as Timestamp };
703
+ export { W as Cell, P as CollectionEnd, T as CollectionPagination, F as CollectionScroll, S as CollectionToolbar, w as ColumnControls, M as DataTable, L as Details, C as FilterChips, I as Inspector, R as ListFooter, B as Metric, z as MetricGrid, U as Table, G as Timestamp };
@@ -1 +1 @@
1
- export { t as CodeBlock } from "../code-block-DSmz0jTf.js";
1
+ export { t as CodeBlock } from "../code-block-D0Jmsj7w.js";
@@ -1,5 +1,5 @@
1
- import { g as e, h as t } from "../src-DuTmAQp5.js";
2
- import { t as n } from "../code-block-DSmz0jTf.js";
1
+ import { g as e, h as t } from "../src-BkCsvZGi.js";
2
+ import { t as n } from "../code-block-D0Jmsj7w.js";
3
3
  import "@stylexjs/stylex";
4
4
  import { useEffect as r, useState as i } from "react";
5
5
  import { Fragment as a, jsx as o, jsxs as s } from "react/jsx-runtime";
@@ -1 +1 @@
1
- export { t as ContentLink } from "../content-link-DLiDJzwq.js";
1
+ export { t as ContentLink } from "../content-link-HLYu0cmz.js";
@@ -1,5 +1,5 @@
1
- import { t as e } from "../code-block-DSmz0jTf.js";
2
- import { n as t, t as n } from "../content-link-DLiDJzwq.js";
1
+ import { t as e } from "../code-block-D0Jmsj7w.js";
2
+ import { n as t, t as n } from "../content-link-HLYu0cmz.js";
3
3
  import * as r from "@stylexjs/stylex";
4
4
  import { Children as i, createElement as a } from "react";
5
5
  import { Fragment as o, jsx as s, jsxs as c } from "react/jsx-runtime";
@@ -1,4 +1,4 @@
1
- import { b as e } from "../src-DuTmAQp5.js";
1
+ import { b as e } from "../src-BkCsvZGi.js";
2
2
  import * as t from "@stylexjs/stylex";
3
3
  import { useEffect as n, useState as r } from "react";
4
4
  import { Fragment as i, jsx as a, jsxs as o } from "react/jsx-runtime";
@@ -26,7 +26,7 @@ function u(c) {
26
26
  let e = !0;
27
27
  async function t() {
28
28
  try {
29
- let t = await import("../pierre-tree-C-eebLcZ.js");
29
+ let t = await import("../pierre-tree-DVybsnm4.js");
30
30
  e && d({
31
31
  Component: t.PierreTree,
32
32
  hasFailed: !1
@@ -1,4 +1,4 @@
1
- import { x as e } from "./src-DuTmAQp5.js";
1
+ import { x as e } from "./src-BkCsvZGi.js";
2
2
  import { jsx as t } from "react/jsx-runtime";
3
3
  // packages/content/src/content-link.tsx
4
4
  var n = "https://content.invalid", r = /* @__PURE__ */ new Set([
package/dist/content.js CHANGED
@@ -1,5 +1,5 @@
1
- import { b as e, g as t, h as n, v as r, x as i } from "./src-DuTmAQp5.js";
2
- import { t as a } from "./code-block-DSmz0jTf.js";
1
+ import { b as e, g as t, h as n, v as r, x as i } from "./src-BkCsvZGi.js";
2
+ import { t as a } from "./code-block-D0Jmsj7w.js";
3
3
  import * as o from "@stylexjs/stylex";
4
4
  import { useCallback as s, useEffect as c, useRef as l, useState as u } from "react";
5
5
  import { jsx as d, jsxs as f } from "react/jsx-runtime";
package/dist/feedback.js CHANGED
@@ -1 +1 @@
1
- export { t as AsyncRegion, n as ContentReveal, u as EmptyState, o as Loading, i as Meter, d as Notice, a as Progress, s as Skeleton, c as SkeletonText, l as Spinner, r as Toast } from "./src-Daf4PUD6.js";
1
+ export { t as AsyncRegion, n as ContentReveal, u as EmptyState, o as Loading, i as Meter, d as Notice, a as Progress, s as Skeleton, c as SkeletonText, l as Spinner, r as Toast } from "./src-B_DCatpY.js";
@@ -1,4 +1,4 @@
1
- import { b as e, v as t } from "../src-DuTmAQp5.js";
1
+ import { b as e, v as t } from "../src-BkCsvZGi.js";
2
2
  import { r as n } from "../src-CfDf8TY8.js";
3
3
  import "@stylexjs/stylex";
4
4
  import { useState as r } from "react";
package/dist/forms.js CHANGED
@@ -1 +1 @@
1
- export { r as Checkbox, g as Combobox, c as Field, d as Fieldset, f as FilePicker, l as Input, p as InputGroup, m as NumberField, i as RadioGroup, s as Select, n as SettingsRow, t as SettingsSection, h as Slider, a as Switch, u as Textarea, o as ToggleGroup } from "./src-DjvJJoaw.js";
1
+ export { r as Checkbox, g as Combobox, c as Field, d as Fieldset, f as FilePicker, l as Input, p as InputGroup, m as NumberField, i as RadioGroup, s as Select, n as SettingsRow, t as SettingsSection, h as Slider, a as Switch, u as Textarea, o as ToggleGroup } from "./src-DjTM64tN.js";
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- export { m as Accordion, _ as Avatar, t as Badge, v as Button, h as Collapsible, l as Columns, g as CopyValue, u as Divider, n as Heading, y as IconButton, r as Identifier, i as Muted, d as Panel, a as Prose, f as Row, p as Stack, o as Status, s as Subheading, c as Text, b as TextButton, x as TextLink } from "./src-DuTmAQp5.js";
1
+ export { m as Accordion, _ as Avatar, t as Badge, v as Button, h as Collapsible, l as Columns, g as CopyValue, u as Divider, n as Heading, y as IconButton, r as Identifier, i as Muted, d as Panel, a as Prose, f as Row, p as Stack, o as Status, s as Subheading, c as Text, b as TextButton, x as TextLink } from "./src-BkCsvZGi.js";